Helper for creating URLs for redirects and other tasks

uses
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

 Methods

Perform helper when called as $this->_helper->url() from an action controller

direct(string $action, string $controller = null, string $module = null, array $params = null) : string

Proxies to \simple()

Parameters

$action

string

$controller

string

$module

string

$params

array

Returns

string

Retrieve current action controller

getActionController() : \Zend_Controller_Action
Inherited

Returns

\Zend_Controller_Action

Retrieve front controller instance

getFrontController() : \Zend_Controller_Front
Inherited

Returns

\Zend_Controller_Front

getName()

getName() : string
Inherited

Returns

string

getRequest() -

getRequest() : \Zend_Controller_Request_Abstract
Inherited

Returns

\Zend_Controller_Request_Abstract$request

getResponse() -

getResponse() : \Zend_Controller_Response_Abstract
Inherited

Returns

\Zend_Controller_Response_Abstract$response

Hook into action controller initialization

init() : void
Inherited

Hook into action controller postDispatch() workflow

postDispatch() : void
Inherited

Hook into action controller preDispatch() workflow

preDispatch() : void
Inherited

setActionController()

setActionController(\Zend_Controller_Action $actionController = null) : \Zend_Controller_ActionHelper_Abstract
Inherited

Parameters

$actionController

\Zend_Controller_Action

Returns

\Zend_Controller_ActionHelper_AbstractProvides a fluent interface

Create URL based on default route

simple(string $action, string $controller = null, string $module = null, array $params = null) : string

Parameters

$action

string

$controller

string

$module

string

$params

array

Returns

string

Assembles a URL based on a given route

url(array $urlOptions = array(), mixed $name = null, boolean $reset = false, boolean $encode = true) : string

This method will typically be used for more complex operations, as it ties into the route objects registered with the router.

Parameters

$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

Returns

stringUrl for the link href attribute.

 Properties

 

$_actionController

$_actionController : \Zend_Controller_Action

Default

null
 

$_frontController

$_frontController : mixed

Default

null