Yii2安裝AdminLTE模板php
1.composer下載模板(composer require dmstr/yii2-adminlte-asset 「2.*」)yii2
2.將項目名下vendor\dmstr\yii2-adminlte-asset\example-views\yiisoft\yii2-app中的layouts和site複製粘貼到backend\views下(覆蓋原有的layouts和site)app
3.Layouts中main.php能夠修改主體顏色composer
<body class="hold-transition skin-green sidebar-mini">yii
skin-blueide
skin-redui
skin-yellowspa
skin-purpleblog
skin-greenit
skin-blue-light
skin-red-light
skin-yellow-light
skin-purple-light
skin-green-light
預知後事如何,請聽下回分解。