That is my Controller Helper:
class Application_Controller_Helper_Test extends Zend_Controller_Action_Helper_Abstract
{
public function preDispatch()
{
$this->_helper->redirector->gotoUrl('/index/index');
// ...
}
But have error, which I can’t fix:
Call to a member function
gotoUrl()on a non-object
If you want to redirect from an action helper, you have to retrieve the redirector helper from the helper broker. The following snippet will redirect to
index/index.