Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'hotfix/358'

Close #358
  • Loading branch information...
commit ae3d6952c9b92cdf0b9eeaa5ba1a068927397821 2 parents 7ede684 + 5a5a367
@weierophinney weierophinney authored
Showing with 28 additions and 2 deletions.
  1. +28 −2 docs/languages/en/modules/zend.view.helpers.rst
View
30 docs/languages/en/modules/zend.view.helpers.rst
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.