Hi everbody, I am using my own css template in my Yii site, and i created admin module, than generated Crud controller with Gii generator. The Crud views open with other layout.
Hi everbody, I am using my own css template in my Yii site, and i created admin module, than generated Crud controller with Gii generator. The Crud views open with other layout.
Gii is a very good tool, but may not satisfy 100% of your needs.
You have to modify the generated codes in order to get what you want.
Or, you could customize Gii by supplying your own code template.
http://www.yiiframework.com/doc/guide/1.1/en/topics.gii#extending-gii
try this in your controller!
public $layout='your layout';
public function accessRules()
{
...
}
...