Is there any way to generate model/controller/CRUD for all tables at one time?


My question is in the title. I’m new to Yii framework and needing your help.

I’ve tried Gii but my app has lots of table, I can’t go through each table and click, type, click… I need a solution to generate all the code at one click like this one hxxp://


It could be possible with a custom Gii code generator.

at least yiic shell can generate models for all tables in the database using > model *

btw, you are faster when using yiic shell

Thanks mbi for the information. Should come handy.