How to disable generating controllers and views with CLI batch command for Giiant?

188 views Asked by At

I am using the command line for generating models with giiant, like this:

yii batch

What do I put into the application configuration or command line options to disable generating views and controllers?

I tried looking at the source of BatchController to see if there are options for that, but I can't find any.

1

There are 1 answers

0
schmunk On BEST ANSWER

When using the batch command

yii giiant-batch/models

will create only models and skip CRUDs. There's also

yii giiant-batch/cruds

The default command

yii giiant-batch

runs both.