Yii2 AdminLTE Gii Extension
, (*1)
Yii2 Framework Code Generator Extension Gii for AdminLTE template, (*2)
Installation
This package required by mervick/yii2-adminlte.
If you want install this manually, open terminal and run:, (*3)
php composer.phar require "mervick/yii2-adminlte-gii" "*"
or add to composer.json, (*4)
"require": {
"mervick/yii2-adminlte-gii": "*"
}
Usage
Then extension was installed add the following lines in your configuration file:, (*5)
return [
'bootstrap' => ['gii'],
'modules' => [
'gii' => [
'class' => 'yii\gii\Module',
'controllerNamespace' => 'mervick\adminlte\gii\controllers',
'generators' => [
'AdminLTE crud' => [
'class' => 'mervick\adminlte\gii\generators\crud\Generator',
],
'AdminLTE model' => [
'class' => 'mervick\adminlte\gii\generators\model\Generator',
],
],
],
// ...
],
// ...
];
Preview
![AdminLTE Gii] (http://webstyle.od.ua/test/yii/gii.png), (*6)