yii2.0 gii
1、添加模型
./yii-dev gii/model --tableName=tableName --generateLabelsFromComments --ns='app\models\base' --modelClass=BaseXXXX --overwrite
2、添加控制器
./yii-dev gii/crud --baseControllerClass='\yii\backend\Controller' --controllerClass='\app\modules\backend\controllers\XXXController' --modelClass='\app\models\XXX'