Authored by wuxiao

添加一个简单模板,用于禁言列表页面

@@ -125,7 +125,9 @@ class ForbiddenController extends BaseController @@ -125,7 +125,9 @@ class ForbiddenController extends BaseController
125 125
126 public function actionGetcomments() 126 public function actionGetcomments()
127 { 127 {
128 -// $this->layout = false; 128 + $this->layout = 'simple';
  129 + $this->getView()->off(\yii\web\View::EVENT_END_BODY, [ Yii::$app->getModule('DqJwEdr9',false), 'renderToolbar']);
  130 +
129 $gets = Yii::$app->request->get(); 131 $gets = Yii::$app->request->get();
130 $room_id = $gets['room_id']; 132 $room_id = $gets['room_id'];
131 if($room_id) { 133 if($room_id) {
  1 +<?php
  2 +
  3 +/* @var $this \yii\web\View */
  4 +/* @var $content string */
  5 +
  6 +use yii\helpers\Html;
  7 +use backend\assets\TemplateAsset;
  8 +use backend\assets\Ie9Asset;
  9 +
  10 +TemplateAsset::register($this);
  11 +Ie9Asset::register($this);
  12 +?>
  13 +<?php $this->beginPage() ?>
  14 +<!DOCTYPE html>
  15 +<html lang="<?= Yii::$app->language ?>">
  16 + <head>
  17 + <meta charset="utf-8">
  18 + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  19 + <meta name="description" content="">
  20 + <meta name="author" content="">
  21 + <?= Html::csrfMetaTags() ?>
  22 + <title><?= Html::encode($this->title) ?></title>
  23 + <?php $this->head() ?>
  24 + </head>
  25 +
  26 + <body>
  27 + <?php $this->beginBody() ?>
  28 +
  29 + <section>
  30 + <div class="contentpanel">
  31 + <?php echo $content;?>
  32 + </div><!-- contentpanel -->
  33 + </section>
  34 +
  35 +
  36 + <?php echo $this->render('foot');?>
  37 +
  38 +
  39 + <?php $this->endBody() ?>
  40 + </body>
  41 +</html>
  42 +<?php $this->endPage() ?>