You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. /* @var $this \yii\web\View */
  3. /* @var $content string */
  4. use backend\assets\AppAsset;
  5. use yii\helpers\Html;
  6. use yii\widgets\Breadcrumbs;
  7. use common\widgets\Alert;
  8. AppAsset::register($this);
  9. ?>
  10. <?php $this->beginPage() ?>
  11. <!DOCTYPE html>
  12. <html lang="<?= Yii::$app->language ?>">
  13. <head>
  14. <meta charset="<?= Yii::$app->charset ?>">
  15. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  16. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  17. <?php $this->registerCsrfMetaTags() ?>
  18. <title><?= Html::encode($this->title) ?></title>
  19. <?php if (YII_ENV == 'dev'){?>
  20. <!-- 开发环境版本,包含了有帮助的命令行警告 -->
  21. <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  22. <?php } else {?>
  23. <!-- 生产环境版本,优化了尺寸和速度 -->
  24. <script src="https://cdn.jsdelivr.net/npm/vue"></script>
  25. <?php } ?>
  26. <?php $this->head() ?>
  27. </head>
  28. <body class="hold-transition skin-blue-light sidebar-mini">
  29. <?php $this->beginBody() ?>
  30. <div class="wrapper">
  31. <div class="content">
  32. <section class="content-header">
  33. <?= $this->render('breadcrumb') ?>
  34. </section>
  35. <section class="content">
  36. <?= $content ?>
  37. </section>
  38. </div>
  39. </div>
  40. <?php $this->endBody() ?>
  41. </body>
  42. </html>
  43. <?php $this->endPage() ?>