Authored by wuxiao

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

... ... @@ -125,7 +125,9 @@ class ForbiddenController extends BaseController
public function actionGetcomments()
{
// $this->layout = false;
$this->layout = 'simple';
$this->getView()->off(\yii\web\View::EVENT_END_BODY, [ Yii::$app->getModule('DqJwEdr9',false), 'renderToolbar']);
$gets = Yii::$app->request->get();
$room_id = $gets['room_id'];
if($room_id) {
... ...
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use backend\assets\TemplateAsset;
use backend\assets\Ie9Asset;
TemplateAsset::register($this);
Ie9Asset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<section>
<div class="contentpanel">
<?php echo $content;?>
</div><!-- contentpanel -->
</section>
<?php echo $this->render('foot');?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
\ No newline at end of file
... ...