【发布时间】:2012-11-29 11:04:49
【问题描述】:
谁能告诉我如何在基于 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");
}
}
这不起作用?如何解决?
【问题讨论】:
-
真的无法理解您的查询
-
我猜你喜欢提出你的问题。我无法解密。
-
请提供有意义且易于理解的问题!
-
现在正在渲染哪个视图?
标签: php zend-framework