Dont Want To Copy Views To Each New Theme

Hi everyone

I have developed a theme manager but it seems that I will have to copy views that has been created with Gii to each theme? Why is that? Is there a way to work around this? I have searched Yii documentation and google for a possible solution.


What I have in mind is that all views resides in default view folder and that themes/mytheme only have layout files (column and main).

it is not required to copy views fir each theme instead you can put your views that are common amongst various themes inside protected/views/ and create separate layout for each theme and set application configuration to use your new theme yii will search for specific views under currently active theme and renders it. if it does not exist then yii will look under protected/views folder and render it if any exist otherwise throws an error