i try to put my views and layout files into the theme directory. but after i copied the files and setup the config in the main.php it is not working anymore.
below you will find the details.
ERROR:
IndexController cannot find the requested view "index".
Since you are calling render('index'), you should have a view file named index.php under protected/views/<ControllerID>/ or under the corresponding theme directory.
Since you are calling render('index'), you should have a view file named index.php under protected/views/<ControllerID>/ or under the corresponding theme directory.
sorry i was sleeping, i thought you mean the index.php (bootstrap file).
Do you have protected/views/index/index.php ? If you don't set 'theme' property in app config, you will need this file to render('index').
ok, one sec.
i thought when you set a theme you have to move all the view files to the theme directory.
so what I did is set the theme to daytrip in the app config put all the view files in public_html/themes/daytrip/views/<ControllerID>/*.php and move die layout.php to public_html/themes/daytrip/views/layout/layout.php
but that is not working… so how do i need to setup theming in Yii…?