light / yii2-generators
gii gernators
0.1.3
2016-07-26 09:11 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: >=2.0.6
Requires (Dev)
- yiisoft/yii2-gii: ~2.0.5
This package is auto-updated.
Last update: 2024-10-08 19:24:44 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist light/yii2-generators "*"
or add
"light/yii2-generators": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
$config['modules']['gii'] = [ 'class' => 'yii\gii\Module', 'generators' => [ 'extension' => [ 'class' => 'light\generators\extension\Generator' ], 'form' => [ 'class' => 'light\generators\form\Generator' ], 'model' => [ 'class' => 'yii\gii\generators\model\Generator', 'templates' => [ 'common' => '@vendor/light/yii2-generators/model/default' ] ], 'crud' => [ 'class' => 'light\generators\crud\Generator' ] ] ];