How do I generate CRUD code that resides in a module directory?

Hi,

How do I generate CRUD code ( using gii/yiic) that resides in a module directory?

Generated code was not in the application.modules directory but are in the application.controller directory.

Expected result like this:

Module path: protected/modules/user

Controller : protected/modules/user/controllers/UserController.php

Model : protected/modules/user/models/User.php

View : protected/modules/user/views/user/admin.php

Thanks

You should specify a module’s name. There was a similar topic: http://www.yiiframework.com/forum/index.php?/topic/6825-creating-model-in-specific-module . Also try “help” command.

I had forgotten to include my module in config/main.php before running crud command

Thank you very much