Answer the question
In order to leave comments, you need to log in
Yii2 how can gii console be modified?
is it possible to change the behavior of the gii console?
those. not to hit
yii gii/crud --modelClass=app\models\Unit --controllerClass=app\controllers\UnitController --enablePjax=1 --searchModelClass=app\models\UnitSearch
yii gii/crud --model-bla
Answer the question
In order to leave comments, you need to log in
Write your generator based on yii\gii\generators\crud\Generator or yii\gii\Generator that will implement the actions you need and connect it to the gii module
override yii\gii\console\GenerateController
www.yiiframework.com/doc-2.0/yii-gii-console-gener...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question