문제

Just wondering what i need to do to access a modules view in my SiteController class to render that view instead of the index view. i want to access the view which is found in protected/modules/account/views/account/register.php. I know i need to change this line in my SiteController::actionIndex class::method : $this->render('index', array('model' => $model));. but I'm not sure what i need to put to access the module's view. I tried 'account/views/account/register but i get this exception: CException SiteController cannot find the requested view "account\views\account\register"

thanks for any help or direction you can provide

도움이 되었습니까?

해결책

By this you can access modules/mymodule/views/profile/changepassword view

$this->renderPartial('application.modules.mymodule.views.profile.changepassword',array('model'=>$model));
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top