谁能告诉我如何在基于 zend 模块化的框架中通过单个操作制作多个视图。
例如
$UserId = $this->getRequest()->getParam('id');
if($UserId !='')
{
$userDetails =$loginObj->getUserTypeByID($UserId);
if($userDetails == 0)
$this->_helper->redirector('index', 'profile', 'default');
else
$usrType = $userDetails['user_type'];
if($usrType =='C' || $usrType =='H' )
{
//$this->renderScript('other-user-profile.phtml' );
//$this->render("other-user-profile.phtml");
$this->_helper->viewRenderer('profile/other-user-profile.phtml');
//$this->_forward('other-user-profile.phtml','profile','default');
}
else
{
$this->render("index.phtml");
}
}
这不起作用?如何解决?