Zend 操作帮助重定向器
如何在模型中重定向或不在控制器中重定向?使用标准 zend 重定向器助手
$redirector = new Zend_Controller_Action_Helper_Redirector();
$redirector->gotoUrl('/');
How to redirect in models or not in contrroler? use standart zend redirector helper
$redirector = new Zend_Controller_Action_Helper_Redirector();
$redirector->gotoUrl('/');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您永远不应该从模型重定向,重定向应该只发生在控制器中。模型应该以黑盒方式设计,独立于控制器。
You should never redirect from a model, redirection should only occur in controllers. Models should be designed in a black box mannor, independant of the controller.