Class Zend_Controller_Action_Helper_Url

Description

Helper for creating URLs for redirects and other tasks

Located in /Controller/Action/Helper/Url.php (line 38)

Zend_Controller_Action_Helper_Abstract
   |
   --Zend_Controller_Action_Helper_Url
Method Summary
 string direct (string $action, [string $controller = null], [string $module = null], [ $params = null])
 string simple (string $action, [string $controller = null], [string $module = null], [ $params = null])
 string url ([array $urlOptions = array()], [mixed $name = null], [boolean $reset = false], [boolean $encode = true])
Variables
Methods
direct (line 113)

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

Proxies to simple()

  • access: public
string direct (string $action, [string $controller = null], [string $module = null], [ $params = null])
  • string $action
  • string $controller
  • string $module
  • array $params
simple (line 49)

Create URL based on default route

  • access: public
string simple (string $action, [string $controller = null], [string $module = null], [ $params = null])
  • string $action
  • string $controller
  • string $module
  • array $params
url (line 96)

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.

  • return: Url for the link href attribute.
  • access: public
string url ([array $urlOptions = array()], [mixed $name = null], [boolean $reset = false], [boolean $encode = true])
  • array $urlOptions: Options passed to the assemble method of the Route object.
  • mixed $name: The name of a Route to use. If null it will use the current Route
  • boolean $reset
  • boolean $encode

Inherited Methods

Inherited From Zend_Controller_Action_Helper_Abstract

 Zend_Controller_Action_Helper_Abstract::getActionController()
 Zend_Controller_Action_Helper_Abstract::getFrontController()
 Zend_Controller_Action_Helper_Abstract::getName()
 Zend_Controller_Action_Helper_Abstract::getRequest()
 Zend_Controller_Action_Helper_Abstract::getResponse()
 Zend_Controller_Action_Helper_Abstract::init()
 Zend_Controller_Action_Helper_Abstract::postDispatch()
 Zend_Controller_Action_Helper_Abstract::preDispatch()
 Zend_Controller_Action_Helper_Abstract::setActionController()

Documentation generated on Thu, 01 Apr 2010 13:27:09 -0400 by phpDocumentor 1.4.3