prodex / yii2-gii
Yii2 gii templates
Installs: 139
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.6
- yiisoft/yii2-gii: ~2.0.0
README
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist prodex/yii2-gii "^1.0"
or add
"prodex/yii2-gii": "^1.0"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply modify your application configuration as follows:
return [ 'bootstrap' => ['gii'], 'modules' => [ 'gii' => [ 'class' => 'yii\gii\Module', 'generators' => [ 'crud' => [ 'class' => 'prodex\yii\gii\generators\crud\Generator', 'excludeColumnsFromForm' => ['created_at', 'create_time', 'updated_at', 'update_time'] ], 'model' => [ 'class' => 'prodex\yii\gii\generators\model\Generator' ] ], ], // ... ], // ... ];