Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我调用 $this->_helper->redirector('index'); 不会调用 preDispatch 是否有解决方法?
重定向器默认会退出代码;通过用$this->_helper->redirector->setExit(false);它覆盖它将正常执行您的代码(使用 preDispatch 等)。
$this->_helper->redirector->setExit(false);