here is the information about my directory structure:
framework (yii core) myapp/ protected/ (yii application) themes/ css/ assets/
I have changed in myapp/protected/config/main.php in line components and adding themeManager like this:
'themeManager' => array( 'basePath' => 'themes' . DIRECTORY_SEPARATOR, 'baseUrl' => 'themes' . DIRECTORY_SEPARATOR, ),
I don't know is it correct definition or not. please tell me if I wrong in define the themeManager configuration. I want using theme directory in:
also. when I try to debug using var_dump function in my controller, like this:
Yii::app()->setTheme('classic'); echo '<pre>'; print_r(Yii::app()->getTheme()); exit;
it produce the output like this:
Fatal error: Call to a member function getTheme() on a non-object in /mnt/win_d/www/website/latihan/yii/framework/web/CWebApplication.php on line 233
how to sett theming correctly sir. I have read the cookbook about theming but still miss and don't understand... maybe I need the sample from other tutorials. please help me.
thank you so much..