yii2-theme-admin
This package contains an:, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Run:, (*3)
php composer.phar require mistim/yii2-adminlte-asset "*"
or add require to composer.json:, (*4)
"mistim/yii2-adminlte-asset": "*"
Configuration
Add the following code to the application configuration, (*5)
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => '@vendor/mistim/yii2-theme-adminlte/src/views'
],
],
],
],
Set layout in your main controller:, (*6)
public $layout = '@vendor/mistim/yii2-theme-adminlte/src/views/layouts/main';
Use template for Gii, (*7)
'gii' => [
'class' => 'yii\gii\Module',
'generators' => [
'crud' => [
'class' => 'yii\gii\generators\crud\Generator',
'templates' => [
'adminlte' => '@vendor/mistim/yii2-theme-adminlte/src/generators/crud/default'
]
]
]
],
// TODO
..., (*8)