<?php /* @var $this \yii\web\View */ /* @var $content string */ use backend\assets\AppAsset; use yii\helpers\Html; use yii\widgets\Breadcrumbs; use common\widgets\Alert; AppAsset::register($this); ?> <?php $this->beginPage() ?> <!DOCTYPE html> <html lang="<?= Yii::$app->language ?>"> <head> <meta charset="<?= Yii::$app->charset ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <?php $this->registerCsrfMetaTags() ?> <title><?= Html::encode($this->title) ?></title> <?php if (YII_ENV == 'dev'){?> <!-- 开发环境版本,包含了有帮助的命令行警告 --> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> <?php } else {?> <!-- 生产环境版本,优化了尺寸和速度 --> <script src="https://cdn.jsdelivr.net/npm/vue"></script> <?php } ?> <?php $this->head() ?> </head> <body class="hold-transition skin-blue-light sidebar-mini"> <?php $this->beginBody() ?> <div class="wrapper"> <?= $this->render('header') ?> <?= $this->render('sidebar') ?> <div class="content-wrapper"> <?php if (Yii::$app->session->hasFlash('error') || Yii::$app->session->hasFlash('success')) { echo Alert::widget(); } ?> <section class="content-header"> <?= $this->render('breadcrumb') ?> </section> <section class="content"> <?= $content ?> </section> </div> <?= $this->render('footer') ?> </div> <?php $this->endBody() ?> </body> </html> <?php $this->endPage() ?>