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.

52 lines
1.7 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. <?php
  32. if (Yii::$app->session->hasFlash('error') || Yii::$app->session->hasFlash('success')) {
  33. echo Alert::widget();
  34. }
  35. ?>
  36. <div class="content">
  37. <section class="content-header">
  38. <?= $this->render('breadcrumb') ?>
  39. </section>
  40. <section class="content">
  41. <?= $content ?>
  42. </section>
  43. </div>
  44. </div>
  45. <?php $this->endBody() ?>
  46. </body>
  47. </html>
  48. <?php $this->endPage() ?>