created module but layout folder didn’t generate ,so i tried to create layout folder manually but layout folder didn’t apply to module.next i tried following steps
Copy the ‘layouts’ folder into your module’s layouts folder
Remove from your module’s views/default/index.php :
- In AdminModule.php (or whatever your module’s name) init() method:
$this->layoutPath = Yii::getPathOfAlias(‘admin.views.layouts’);
$this->layout = ‘main’;
Extend your module’s DefaultController from CController instead of Controller (as mentioned by Mr. Luke ).
Finally, customize your layouts by modifying the files in your module’s ‘layouts’ folder.
but once again i failed to achieve goal , plz some one can help me.