$this->_helper->redirector('save', 'index', 'report', $params);
This does not work when i use it from a library file It says
Fatal error: Call to undefined method Mylib::getHelper().
But When used from controller it works properly. Can any guide me with code what I need to do?
Best How To :
You should really try to do this kinda thing from a controller, but I've found a use-case for this in a library file as well, so there's no shame in it :-)
$redirector = new Zend_Controller_Action_Helper_Redirector();
$redirector->gotoSimpleAndExit($action, $controller, $module, $params);
More info here http://framework.zend.com/apidoc/1.9/Zend_Controller/Zend_Controller_Action_Helper/Zend_Controller_Action_Helper_Redirector.html