|
The Redirector helper allows you to use a redirector
object to fufill your application's needs for redirecting to a new
URL. It provides numerous benefits over the
_redirect() method, such as being able to preconfigure
sitewide behavior into the redirector object or using the built in
goto($action, $controller, $module, $params) interface
similar to that of Zend_Controller_Action::_forward().
The Redirector has a number of methods that can be used
to affect the behaviour at redirect:
-
setCode() can be used to set the HTTP response
code to use during the redirect.
-
setExit() can be used to force an
exit() following a redirect. By default this is
true.
-
setGoto() can be used to set a default URL to
use if none is passed to goto(). Uses the API
of Zend_Controller_Action::_forward():
setgoto($action, $controller = null, $module = null, array
$params = array());
|