// in your AdminController add a method:
public function beforeAction($action)
{
Yii::app()->theme = 'admin';
return true;
}
i never do this ,so this just a tip . you can refer here setTheme and here theming
if above has effecting , you may consider the following if not just ignore my thoughts :
// in your AdminController add a method:
private $oldTheme ;
public function beforeAction($action)
{
$this->oldThem = Yii::app()->theme;
Yii::app()->theme = 'admin';
return true;
}
protected function afterAction($action){
Yii::app()->theme = $this->oldTheme;
}
just my thought . if you use the module as your backend app; try : beforeControllerAction afterControllerAction in your AdminModule ;