main.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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\helpers\Url;
  7. //use yii\bootstrap\Nav;
  8. //use yii\bootstrap\NavBar;
  9. //use yii\widgets\Breadcrumbs;
  10. //use common\widgets\Alert;
  11. AppAsset::register($this);
  12. $this->title = Yii::$app->params['site_pfg'];
  13. ?>
  14. <?php $this->beginPage() ?>
  15. <!DOCTYPE html>
  16. <html lang="<?= Yii::$app->language ?>">
  17. <head>
  18. <meta charset="<?= Yii::$app->charset ?>">
  19. <meta name="renderer" content="webkit">
  20. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  21. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  22. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  23. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  24. <meta name="apple-mobile-web-app-capable" content="yes">
  25. <meta name="format-detection" content="telephone=no">
  26. <?= Html::csrfMetaTags() ?>
  27. <title><?= Html::encode($this->title) ?></title>
  28. <?php $this->head() ?>
  29. </head>
  30. <body class="main_body">
  31. <?php $this->beginBody() ?>
  32. <?= $content ?>
  33. <?php $this->endBody() ?>
  34. </body>
  35. </html>
  36. <?php $this->endPage() ?>