Yii Themes - Not Working....


I am a newbie and learning yii but facing this problem with themes. I followed this and copied all the contents of /protected/views into /themes/classic/views . Also added




in /config/main.php but theme is not getting activated. I receive the following error:

Fatal error: Call to a member function getViewFile() on a non-object in E:\Projects\yii\framework\web\CController.php on line 587.

Any help would be greatly appreciated.

So far, yii’s experience is outstanding, great job yii team…!



assign theme in protected/config/main.php

[b] ‘name’=>‘My Web Application’,


copy the files from protected/views/layouts and paste into themes/classic/views/layouts

thanks a lot. Just one thing to point out, the main problem was because I was passing an array to "theme" in mian.php, it should be discrete value as Mbala mentioned.