<?php
/* @var $this \yii\web\View */
/* @var $content string */
use backend\assets\AppAsset;
use yii\helpers\Html;
use common\widgets\Alert;
$this->registerCssFile('/backend/web/dist/css/css.css', ['depends' => backend\assets\AppAsset::className(), "position"=> $this::POS_END]);
$this->registerJsFile('/backend/web/dist/js/demo.js', ['depends' => backend\assets\AppAsset::className(), "position"=> $this::POS_END]);
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php $this->registerCsrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
//单独页面可以通过$this->title = "6666";修改title的文字
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<div class="wrapper">
<?= Alert::widget() ?>
<?= $content ?>
</div>
<?php $this->beginBlock('script') ?>
$.widget.bridge('uibutton', $.ui.button)
<?php $this->endBlock() ?>
<?php $this->registerJs($this->blocks['script'], \yii\web\View::POS_END); ?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
yii静态样式引入模板,资源引入
最新推荐文章于 2024-08-07 19:39:11 发布