0

如果我调用 $this->_helper->redirector('index'); 不会调用 preDispatch 是否有解决方法?

4

1 回答 1

0

重定向器默认会退出代码;通过用$this->_helper->redirector->setExit(false);它覆盖它将正常执行您的代码(使用 preDispatch 等)。

于 2013-04-08T19:28:38.913 回答