Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'hotfix/358'
Close #358
  • Loading branch information
weierophinney committed Oct 4, 2012
2 parents 7ede684 + 5a5a367 commit ae3d695
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions docs/languages/en/modules/zend.view.helpers.rst
Expand Up @@ -53,8 +53,34 @@ route-based *URL*\ s and *HTML* lists, as well as declaring variables. Additiona
helpers for providing values for, and rendering, the various HTML *<head>* tags, such as ``HeadTitle``,
``HeadLink``, and ``HeadScript``. The currently shipped helpers include:

- ``url($name, $urlParams, $routeOptions, $reuseMatchedParams)``: Creates a *URL* string based on a named route. ``$urlParams`` should be an
associative array of key/value pairs used by the particular route.
- ``url($name, $urlParams, $routeOptions, $reuseMatchedParams)``: Creates a *URL* string based on a named route.
``$urlParams`` should be an associative array of key/value pairs used by the particular route.

.. code-block:: php
:linenos:
// In a configuration array (e.g. returned by some module's module.config.php)
'router' => array(
'routes' => array(
'auth' => array(
'type' => 'segment',
'options' => array(
'route' => '/auth[/:action][/:id]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*'
),
'defaults' => array(
'controller' => 'solon\solon',
'action' => 'index'
)
)
)
)
),
// In a view template:
<a href="<?php echo $this->url('auth', array('action' => 'logout', 'id' => $id)); ?>">Logout</a>
- ``htmlList($items, $ordered, $attribs, $escape)``: generates unordered and ordered lists based on the ``$items``
passed to it. If ``$items`` is a multidimensional array, a nested list will be built. If the ``$escape`` flag is
Expand Down

0 comments on commit ae3d695

Please sign in to comment.