Generators with AdminLTE2 template
Generators with AdminLTE2 template, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist jakim-pj/yii2-gii-adminlte2
or add, (*4)
"jakim-pj/yii2-gii-adminlte2": "^1.0"
to the require section of your composer.json file., (*5)
Usage
Add to: config/web.php, (*6)
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'generators' => [
'crud' => [
'class' => 'yii\gii\generators\crud\Generator',
'template' => 'adminLte2',
'templates' => [
'adminLte2' => '@vendor/jakim-pj/yii2-gii-adminLte2/generators/crud/',
]
]
],
];
Copy and customize main layout:, (*7)
examples/views/layouts/main.php, (*8)
, (*9)