Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Helper for creating URLs for redirects and other tasks

direct(
string $action, string $controller
=
null, string $module
=
null, array $params
=
null
)
:
string
Perform helper when called as $this->_helper->url() from an action controller
Proxies to {@link simple()}
Name | Type | Description |
---|---|---|
$action | string | |
$controller | string | |
$module | string | |
$params | array |
Type | Description |
---|---|
string |

getActionController(
)
:
\Zend_Controller_Action
Retrieve current action controller
Inherited from: \Zend_Controller_Action_Helper_Abstract::getActionController()Type | Description |
---|---|
\Zend_Controller_Action |

getFrontController(
)
:
\Zend_Controller_Front
Retrieve front controller instance
Inherited from: \Zend_Controller_Action_Helper_Abstract::getFrontController()Type | Description |
---|---|
\Zend_Controller_Front |

getName(
)
:
string
getName()
Inherited from: \Zend_Controller_Action_Helper_Abstract::getName()Type | Description |
---|---|
string |

getRequest(
)
:
\Zend_Controller_Request_Abstract
getRequest() -
Inherited from: \Zend_Controller_Action_Helper_Abstract::getRequest()Type | Description |
---|---|
\Zend_Controller_Request_Abstract | $request |

getResponse(
)
:
\Zend_Controller_Response_Abstract
getResponse() -
Inherited from: \Zend_Controller_Action_Helper_Abstract::getResponse()Type | Description |
---|---|
\Zend_Controller_Response_Abstract | $response |

init(
)
:
void
Hook into action controller initialization
Inherited from: \Zend_Controller_Action_Helper_Abstract::init()
postDispatch(
)
:
void
Hook into action controller postDispatch() workflow
Inherited from: \Zend_Controller_Action_Helper_Abstract::postDispatch()
preDispatch(
)
:
void
Hook into action controller preDispatch() workflow
Inherited from: \Zend_Controller_Action_Helper_Abstract::preDispatch()
setActionController(
\Zend_Controller_Action $actionController
=
null
)
:
\Zend_Controller_ActionHelper_Abstract
setActionController()
Inherited from: \Zend_Controller_Action_Helper_Abstract::setActionController()Name | Type | Description |
---|---|---|
$actionController | \Zend_Controller_Action |
Type | Description |
---|---|
\Zend_Controller_ActionHelper_Abstract | Provides a fluent interface |

simple(
string $action, string $controller
=
null, string $module
=
null, array $params
=
null
)
:
string
Create URL based on default route
Name | Type | Description |
---|---|---|
$action | string | |
$controller | string | |
$module | string | |
$params | array |
Type | Description |
---|---|
string |

url(
array $urlOptions
=
array, mixed $name
=
null, boolean $reset
=
false, boolean $encode
=
true
)
:
string
Assembles a URL based on a given route
This method will typically be used for more complex operations, as it ties into the route objects registered with the router.
Name | Type | Description |
---|---|---|
$urlOptions | array | Options passed to the assemble method of the Route object. |
$name | mixed | The name of a Route to use. If null it will use the current Route |
$reset | boolean | |
$encode | boolean |
Type | Description |
---|---|
string | Url for the link href attribute. |