Zend Framework  1.12
Public Member Functions | List of all members
Zend_Controller_Action_Helper_Url Class Reference

Public Member Functions

 simple ($action, $controller=null, $module=null, array $params=null)
 Create URL based on default route.
 
 url ($urlOptions=array(), $name=null, $reset=false, $encode=true)
 Assembles a URL based on a given route.
 
 direct ($action, $controller=null, $module=null, array $params=null)
 Perform helper when called as $this->_helper->url() from an action controller.
 
- Public Member Functions inherited from Zend_Controller_Action_Helper_Abstract
 setActionController (Zend_Controller_Action $actionController=null)
 setActionController()
 
 getActionController ()
 Retrieve current action controller.
 
 getFrontController ()
 Retrieve front controller instance.
 
 init ()
 Hook into action controller initialization.
 
 preDispatch ()
 Hook into action controller preDispatch() workflow.
 
 postDispatch ()
 Hook into action controller postDispatch() workflow.
 
 getRequest ()
 getRequest() -
 
 getResponse ()
 getResponse() -
 
 getName ()
 getName()
 

Additional Inherited Members

- Protected Attributes inherited from Zend_Controller_Action_Helper_Abstract
 $_actionController = null
 $_actionController
 
 $_frontController = null
 

Member Function Documentation

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

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

Proxies to simple()

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

Create URL based on default route.

Parameters
string$action
string$controller
string$module
array$params
Returns
string
url (   $urlOptions = array(),
  $name = null,
  $reset = false,
  $encode = true 
)

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.

Parameters
array$urlOptionsOptions passed to the assemble method of the Route object.
mixed$nameThe name of a Route to use. If null it will use the current Route
boolean$reset
boolean$encode
Returns
string Url for the link href attribute.