This is a simple extension to pick themes. The themes scanned from your theme directory, and the user get the choice to pick one via dropbox, simple and effective... you can add some css to style things, this is CPortlet User choice (theme choice) stored in cookie.
You are more than welcome to improve it and share
Yii framework ;-)
Copy the ThemePicker directory to your extensions directory
When you extend CController... Put inside CController::init() method :
Yii::import('ext.ThemePicker.EThemePicker'); EThemePicker::setTheme();
*as an alternative you can put it in beforeAction, this will also work...
In your view put
$this->widget('ext.ThemePicker.EThemePicker', array( ));
Total 3 comments
If you're using yii-boostrap, and it's in preload, its css are pre-published in assets.
How to use theme css for this ?
Found it: /protected/components/Controller.php
Hi, where is "CController::init() method" ?
Leave a comment
Please login to leave your comment.