Controller/Action/Helper/Url.php

Show: PublicProtectedPrivateinherited
Table of Contents
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 [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Controller  
Subpackage
Zend_Controller_Action_Helper  
Version
$Id$  

\Zend_Controller_Action_Helper_Url

Package: Zend_Controller\Zend_Controller_Action_Helper
Helper for creating URLs for redirects and other tasks
Parent(s)
\Zend_Controller_Action_Helper_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
 

Methods

methodpublicdirect(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()}
Parameters
NameTypeDescription
$actionstring
$controllerstring
$modulestring
$paramsarray
Returns
TypeDescription
string
methodpublicsimple(string $action, string $controller = null, string $module = null, array $params = null) : string

Create URL based on default route

Parameters
NameTypeDescription
$actionstring
$controllerstring
$modulestring
$paramsarray
Returns
TypeDescription
string
methodpublicurl(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.
Parameters
NameTypeDescription
$urlOptionsarray

Options passed to the assemble method of the Route object.

$namemixed

The name of a Route to use. If null it will use the current Route

$resetboolean
$encodeboolean
Returns
TypeDescription
stringUrl for the link href attribute.
Documentation was generated by phpDocumentor 2.2.0 .