dev-master
9999999-dev https://github.com/navalp/codiant-gii-modelGii Model generator for Yii 2 Framework
The Requires
by Codiant
yii2 crud gii
Gii Model generator for Yii 2 Framework
Installation, (*1)
The preferred way to install this extension is through composer., (*2)
composer.phar require navalp/codiant-gii-model:"*" The generators are registered automatically in the application bootstrap process, if the Gii module is enabled Model generator-- It is used to generates separate model classes to customize ,base and query models classes to regenerate. · Use different templates for model generation., (*3)
Use custom generators, model templates (Define it in main-local.php)--, (*4)
$config['modules']['gii'] = [ 'class' => 'yii\gii\Module', 'generators' => [ 'model' => [ 'class' => 'frontend\codiant\model\Generator', 'templates' => [ //setting for out templates 'model' => '@frontend/codiant/model/default', ] ] ], ];, (*5)
namespaces--, (*6)
1.customize class- namespace common\models; 2.Base class- namespace common\models\base; 3.Query class- namespace common\models\query;
Gii Model generator for Yii 2 Framework
yii2 crud gii