Blame view

app-wx/views/layouts/test.php 878 Bytes
62d73041   xu   app-wx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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() ?>