【发布时间】:2011-06-02 05:41:52
【问题描述】:
如何在模型中重定向或不在控制器中重定向?使用标准的 zend 重定向器助手
$redirector = new Zend_Controller_Action_Helper_Redirector();
$redirector->gotoUrl('/');
【问题讨论】:
-
为什么投反对票?毫无疑问,在模型中重定向是一件坏事(tm),但是 OP 是否需要仅仅因为询问而受到惩罚?
标签: php zend-framework actionviewhelper