Hi,
I copied protected\views to themes\classic\views
Added this in main.php
'themeManager'=>array( 'name'=>'classic', ),
But it is still using the default views. Any help?
Hi,
I copied protected\views to themes\classic\views
Added this in main.php
'themeManager'=>array( 'name'=>'classic', ),
But it is still using the default views. Any help?
You don't need to configure themeManager. Instead, you set 'theme' property of application.
EDIT:
Ok, my bad, I put the ‘theme’=>‘classic’ at the end of the config main.php file, but didn’t notice the “),” below it, so it was actually within components… heh.
I still have a question about the css file though. It is included with:
<?php echo CHtml::cssFile(Yii::app()->baseUrl.’/css/main.css’); ?>
How can I incorporate that into the theme so it can be switched with the theme. Most of the time the theme change is going to mainly involve a new css file.
<?php echo CHtml::cssFile(Yii::app()->theme->baseUrl.’/css/main.css’); ?>