use Crud own template

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.

try this in your controller!

    public $layout='your layout';

    public function accessRules()