navalp/codiant-gii-model

There is no license information available for the latest version (dev-master) of this package.

Gii Model generator for Yii 2 Framework

dev-master 2015-01-22 12:16 UTC

This package is not auto-updated.

Last update: 2024-05-11 14:06:54 UTC


README

Installation

The preferred way to install this extension is through composer.

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.

Use custom generators, model templates (Define it in main-local.php)--

$config['modules']['gii'] = [ 'class' => 'yii\gii\Module', 'generators' => [ 'model' => [ 'class' => 'frontend\codiant\model\Generator', 'templates' => [ //setting for out templates 'model' => '@frontend/codiant/model/default', ] ] ], ];

namespaces--

1.customize class-
		namespace common\models;
2.Base class-
		namespace common\models\base;
3.Query class-
		namespace common\models\query;