custom user interface theme and layout

Is it possible to use yii framework to develop app that can allow user to choose theme, layout like those featured in drupal, wordpress etc cms? Any existing library or extension we can use for this purpose? Thanks!

Of corse is possible.

There are no ready tools, but is very simple. Just save in the session of the user the theme, layout as you wish and load in the application::onInit.

Yii has a good support for theming, read the guide about it.

Thanks! Can we apply the theme and layout only to parts of the application, such as user’s personal pages or spaces, they may want to have different views to the main part of the application.

any idea?

Yes you can. Can be changed at controller init(), action or probably (not tested) even view level.




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



/Tommy

Thanks!