category | Zend |
---|---|
package | Zend_Controller |
subpackage | Zend_Controller_Action_Helper |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Controller_Action_Helper_Abstract |
__call(string $method, array $args) : mixed
Overloading for old 'goto', 'setGoto', and 'gotoAndExit' methods
string
array
\Zend_Controller_Action_Exception |
for invalid methods |
---|
mixed
direct(string $action, string $controller= null
, string $module= null
, array $params= array()
) : void
string
string
string
array
getActionController() : \Zend_Controller_Action
\Zend_Controller_Action
getCloseSessionOnExit() : boolean
boolean
getCode() : integer
integer
getExit() : boolean
boolean
getFrontController() : \Zend_Controller_Front
\Zend_Controller_Front
getName() : string
string
getPrependBase() : boolean
boolean
getRedirectUrl() : string
string
getRequest() : \Zend_Controller_Request_Abstract
\Zend_Controller_Request_Abstract
$requestgetResponse() : \Zend_Controller_Response_Abstract
\Zend_Controller_Response_Abstract
$responsegetUseAbsoluteUri() : boolean
boolean
gotoRoute(array $urlOptions= array()
, string $name= null
, boolean $reset= false
, boolean $encode= true
) : void
Uses route's assemble method to build the URL; route is specified by $name; default route is used if none provided.
array
Array of key/value pairs used to assemble URL
string
boolean
boolean
gotoRouteAndExit(array $urlOptions= array()
, string $name= null
, boolean $reset= false
) : void
Uses route's assemble method to build the URL; route is specified by $name; default route is used if none provided.
array
Array of key/value pairs used to assemble URL
string
boolean
gotoSimple(string $action, string $controller= null
, string $module= null
, array $params= array()
) : void
string
string
string
array
gotoSimpleAndExit(mixed $action, mixed $controller= null
, mixed $module= null
, array $params= array()
) : void
mixed
mixed
mixed
array
gotoUrl(string $url, array $options = array()
) : void
string
array
gotoUrlAndExit(string $url, array $options = array()
) : void
string
array
init() : void
postDispatch() : void
preDispatch() : void
redirectAndExit() : void
setActionController(\Zend_Controller_Action $actionController = null
) : \Zend_Controller_ActionHelper_Abstract
\Zend_Controller_Action
\Zend_Controller_ActionHelper_Abstract
Provides a fluent interfacesetCloseSessionOnExit(boolean $flag) : \Zend_Controller_Action_Helper_Redirector
boolean
\Zend_Controller_Action_Helper_Redirector
Provides a fluent interfacesetCode(integer $code) : \Zend_Controller_Action_Helper_Redirector
integer
\Zend_Controller_Action_Helper_Redirector
Provides a fluent interfacesetExit(boolean $flag) : \Zend_Controller_Action_Helper_Redirector
boolean
\Zend_Controller_Action_Helper_Redirector
Provides a fluent interfacesetGotoRoute(array $urlOptions= array()
, string $name= null
, boolean $reset= false
, boolean $encode= true
) : void
array
string
Route name
boolean
boolean
setGotoSimple(string $action, string $controller= null
, string $module= null
, array $params= array()
) : void
string
string
string
array
setGotoUrl(string $url, array $options = array()
) : void
By default, emits a 302 HTTP status header, prepends base URL as defined in request object if url is relative, and halts script execution by calling exit().
$options is an optional associative array that can be used to control redirect behaviour. The available option keys are:
_redirect() sets the Location header in the response object. If you set the exit flag to false, you can override this header later in code execution.
If the exit flag is true (true by default), _redirect() will write and close the current session, if any.
string
array
setPrependBase(boolean $flag) : \Zend_Controller_Action_Helper_Redirector
boolean
\Zend_Controller_Action_Helper_Redirector
Provides a fluent interfacesetUseAbsoluteUri(boolean $flag = true
) : \Zend_Controller_Action_Helper_Redirector
boolean
\Zend_Controller_Action_Helper_Redirector
Provides a fluent interface_checkCode(integer $code) : true
integer
\Zend_Controller_Action_Exception |
on invalid HTTP status code |
---|
true
_prependBase(string $url) : string
string
string
_redirect($url) : void
$_actionController : \Zend_Controller_Action
null
$_closeSessionOnExit : boolean
true
$_code : integer
302
$_exit : boolean
true
$_frontController : mixed
null
$_prependBase : boolean
true
$_redirectUrl : string
null
$_useAbsoluteUri : boolean
false