I’m developing a CMS for using Yii framework, the website has a frontend visible to everyone, and a backend for the logged in user. I have different templates for these two. However I don’t know how to assign a different template to my backend.
Here is my config/main.php, and the template that I have added is applied to the whole website.
return array(
'theme'=>'cola_theme',
...
);
If you use different themes, you can update the theme property of the webapp, with:
Alternatively, if you just want to use a different layout, you can update the layout property of your controller in the actions that are available for the backend ie:
Where the
layoutsfolder is underprotected/views/.More on theming and layouts.