【发布时间】:2015-04-30 21:04:23
【问题描述】:
如何重定向到另一个模块?
return $this->redirect()->toRoute(null, array(
'module' => 'othermodule',
'controller' => 'somecontroller',
'action' => 'someaction'
));
这似乎不起作用,有什么想法吗?
【问题讨论】:
-
如果您要重定向,请重定向到路由名称。如果您只想调度另一个动作,请使用 forward() 帮助器。见framework.zend.com/manual/2.1/en/modules/zend.mvc.plugins.html
标签: zend-framework2