Created
April 13, 2013 18:58
-
-
Save DrMabuse23/5379614 to your computer and use it in GitHub Desktop.
How To use Theme in Yii
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//I wil show you 2 Types | |
/** | |
* 1. | |
* in you want put this in your main.php | |
* this way is for all controllers | |
*/ | |
return array( | |
'theme' => NAME of your Folder in www/themes/ example:'bootstrap', | |
/** | |
* 2. | |
* in your controller | |
*/ | |
public function init() | |
{ | |
Yii::app()->theme = 'bootsrap'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment