1.composer安装yii2 "dmstr/yii2-adminlte-asset"
composer require dmstr/yii2-adminlte-asset
2.将在config/main.php中配置模版主题
'assetManager' => [
'bundles' => [
'dmstr\web\AdminLteAsset' => [
'skin' => 'skin-blue-light',
],
],
],
3.将vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app目录下的文件复制到对应到view目录
4.body class 修改为如下代码
<body class="sidebar-mini <?= \dmstr\helpers\AdminLteHelper::skinClass() ?>">
后台模版配置完成