I have started using YII few days back , I have created a module and all the models required for the module , when I create CRUD operations for the module using GII, it creates all my module controllers in the main controller directory , I may be wrong, but I don’t think it is a good idea because , all the resources required should be inside the module itself. does it have some kind of advantage
I still use yiic shell instaed of gii for generating models and crud.
so you can create your crud for an admin-module like this:
$ crud Post admin/Post
first declare your module in config/main.php
then in the creation of crud
Controller ID must be
modulename/modulename
Thanks guys , Now I got it solved