yii2-codefellow-giigenerators
New personalized GII's generators:
1. Model
2. CRUD, (*1)
Installation
To install, either run, (*2)
$ php composer.phar require codefellow/giigenerators "@dev"
or add, (*3)
"codefellow/giigenerators": "@dev"
Usage
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'generators' => [ //here
'codefellow-model' => [ // generator name
'class' => 'codefellow\giigenerators\model\Generator', // generator class
],
'codefellow-crud' => [ // generator name
'class' => 'codefellow\giigenerators\crud\Generator', // generator class
'templates' => [ //setting for out templates
't-translation' => '@vendor/codefellow/giigenerators/src/crud/t-translation', // template name => path to template
]
]
],
];