I am doing an ACL check in the preDispatch method of the action helper. When it fails, I want to call the action controller's _redirect method, but it's hard for me to do this.
In the comments attached to this post, zend-framework, call the action assistant from another assistant , I see two solutions. First, the controller gets access from the helper as $ this β _ actionController. In the second, it is accessed using $ this-> getActionController ().
I tried both of the following:
$this->_actionController->_redirect('/'); $this->getActionController()->_redirect('/');
Anyway, I get the "Method" _redirect "does not exist ...". Are there possibly restrictions on access to controller methods from the action assistant?
php zend-framework
Kim prince
source share