dev-master
9999999-devThe Custom model integration for the Yii framework
BSD-3-Clause
The Requires
by Codiant
yii2 helper generator model
The Custom model integration for the Yii framework
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., (*1)
Use custom generators, model templates (Define it in main-local.php)--, (*2)
$config['modules']['gii'] = [ 'class' => 'yii\gii\Module', 'generators' => [ 'model' => [ 'class' => 'spawan\custommodel\Generator', 'templates' => [ //setting for out templates 'model' => '@spawan/custommodel/default', ] ] ], ];, (*3)
namespaces--, (*4)
1.customize class- namespace common\models; 2.Base class- namespace common\models\base; 3.Query class- namespace common\models\query;
The Custom model integration for the Yii framework
BSD-3-Clause
yii2 helper generator model