changeover Theme with Controler

Ok I read this site (theming) and it is not enough for me. I wont change Theme with Controler f.e.

	'defaultThemes' => array(


		'admin' => 'defaultAdminTheme',


		'home' => 'defaultHomeTheme',


		'map' => 'defaultMapTheme',


	),

and admin,home,map is Name Controler…

it is posible?

Add this to your controller




public function init()

{

  Yii::app()->theme = 'someTheme';

  parent::init();

}



or if you prefer to define themes in config




public function init()

{

  Yii::app()->theme = Yii::app()->params->someTheme;

  parent::init();

}



/Tommy

Yes it is working Very Good !! :)

Thanks tri !