Yii2安装AdminLTE模板
1.composer下载模板(composer require dmstr/yii2-adminlte-asset “2.*”)
2.将项目名下vendordmstryii2-adminlte-assetexample-viewsyiisoftyii2-app中的layouts和site复制粘贴到backendviews下(覆盖原有的layouts和site)
3.Layouts中main.php可以修改主体颜色
<body class="hold-transition skin-green sidebar-mini">
skin-blue
skin-red
skin-yellow
skin-purple
skin-green
skin-blue-light
skin-red-light
skin-yellow-light
skin-purple-light
skin-green-light
预知后事如何,请听下回分解。