只是想知道我需要做什么来访问SiteController类中的模块视图,以呈现该视图而不是索引视图。我想访问protected/modules/account/views/account/register.php
中的视图。我知道我需要更改SiteController::actionIndex
类::方法:$this->render('index', array('model' => $model));
中的这一行。但我不确定我需要放什么来访问模块的视图。我尝试了'account/views/account/register
,但我得到了这个异常:CException SiteController cannot find the requested view "account'views'account'register"
感谢您为提供的任何帮助或指导
通过此操作,您可以访问模块/mymodule/views/profile/changepassword视图
$this->renderPartial('application.modules.mymodule.views.profile.changepassword',array('model'=>$model));