myzero1 / yii2-gii-plus
Yii2 custom generator for gii
Installs: 123
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Type:yii2-extension
Requires
- bower-asset/admin-lte: ^2.3.11
- bower-asset/flot: ^0.8
- bower-asset/font-awesome: ^4.0
- bower-asset/html5shiv: ^3.0
- bower-asset/jquery-slimscroll: ^1.3
- myzero1/yii2-upload: ~1.0.2
- yiidoc/yii2-redactor: *
- yiisoft/yii2: ~2.0
- yiisoft/yii2-gii: ~2.0
README
It add theming generator and new template for crud.It based on yiisoft/yii2-gii
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require-dev myzero1/yii2-gii-plus:1.*
or add
"myzero1/yii2-gii-plus": "~1.0.0"
to the require-dev section of your composer.json
file.
Setting
Once the extension is installed, simply modify your application configuration as follows:
... if (!YII_ENV_TEST) { $config['bootstrap'][] = 'myzero1'; $config['modules']['myzero1'] = [ 'class' => 'myzero1\yii2giiplus\Module', 'allowedIPs' => ['*'], // 'generators' => [ // 'myzero1_mvc' => ['class' => 'myzero1\yii2giiplus\generators\mvc\Generator'], // 'myzero1_crud' => [ // 'class' => 'myzero1\yii2giiplus\generators\crud\Generator', // 'templates' => [ // 'adminlte' => '@myzero1/gii/generators/theming/default/adminlte/_gii_templates/crud', // ], // 'template' => 'adminlte', // 'messageCategory' => 'backend' // ], // ] ]; }
Usage
You can then access Gii through the following URL:
http://localhost/path/to/index.php?r=myzero1
OR
http://localhost/path/to/index.php?r=myzero1/gii
or if you have enabled pretty URLs, you may use the following URL:
http://localhost/path/to/index.php/myzero1
OR
http://localhost/path/to/index.php/myzero1/gii