This package contains an:
- AssetBundle for Yii Framework 2.0 which registers the resources of AdminLTE 2 and Font-Awesome 4
- Widgets which use GUI AdminLTE 2
- example views
The preferred way to install this extension is through composer.
Run:
php composer.phar require mistim/yii2-adminlte-asset "*"
or add require to composer.json:
"mistim/yii2-adminlte-asset": "*"
Add the following code to the application configuration
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => '@vendor/mistim/yii2-theme-adminlte/src/views'
],
],
],
],
Set layout in your main controller:
public $layout = '@vendor/mistim/yii2-theme-adminlte/src/views/layouts/main';
Use template for Gii
'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 ...