main.php
851 Bytes
<?php
use yii\helpers\Html;
use app\wx\assets\AppAsset;
AppAsset::register($this);
$this->title = \yii::$app->name;
$baseUrl = yii::getAlias('@web');
$assets = $this->getAssetManager();
$asset = $assets->getBundle('app\wx\assets\AppAsset');
$site = $this->params['site'];
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?=yii::$app->language ?>">
<head>
<meta charset="<?=yii::$app->charset ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
<script>
<?=$this->render("/widgets/js-site", ['site' => $site])?>
</script>
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<?=$content?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>