We made some changes in structure of applications and themes are not supported by default at this moment.
You can try to make following changes to resolve it:
Open file /protected/components/ModuleUserController.php and add function:
- Code: Select all
public function getViewFile($viewName){
if(($theme=Yii::app()->getTheme())!==null && ($viewFile=$theme->getViewFile($this,$viewName))!==false)
return $viewFile;
$moduleViewPath=$basePath=Yii::app()->getViewPath();
if(($module=$this->getModule())!==null)
$moduleViewPath=$module->getViewPath();
$theme = Yii::app()->theme;
if($theme && $theme->name){
$themePath = $theme->getViewPath().DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.$this->getModule($this->id)->getName();
if(is_file($themePath.DIRECTORY_SEPARATOR.$viewName.'.php')){
$moduleViewPath = $themePath;
}
}
return $this->resolveViewFile($viewName,$moduleViewPath,$basePath,$moduleViewPath);
}
After that, files for theme has following paths:
/themes/<theme name>/views/layouts (original path: /protected/views/layouts)
/themes/<theme name>/views/modules/<module name>/ (original path: /protected/modules/<module name>/views)
/themes/<theme name>/views/site/ (original path: /protected/views/site)