Update docs/languages/en/modules/zend.view.helpers.rst #358

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants
Contributor

Ore4444 commented Oct 4, 2012

Added a code example to url()

@robertbasic robertbasic commented on an outdated diff Oct 4, 2012

docs/languages/en/modules/zend.view.helpers.rst
@@ -53,8 +53,31 @@ 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
+ // in a configuration array (i.e. returned by module.config.php)
+ 'router' => array(
+ 'routes' => array(
+ 'solon' => array(
@robertbasic

robertbasic Oct 4, 2012

Contributor

Maybe better name the route "logout", so it's a bit clearer?

@robertbasic robertbasic commented on an outdated diff Oct 4, 2012

docs/languages/en/modules/zend.view.helpers.rst
@@ -88,7 +111,7 @@ name by which you wish to refer to it to the actual class name of the helper/plu
Programmatically, this is done as follows:
-.. code-block:: php
+c
@robertbasic

robertbasic Oct 4, 2012

Contributor

What happened here?

@weierophinney weierophinney added a commit that referenced this pull request Oct 4, 2012

@weierophinney weierophinney [#358] minor fixes
- Added :linenos: directive to example
- Reduced indentation of example by one character
- Changed verbiage in example comments
5a5a367

@weierophinney weierophinney added a commit that referenced this pull request Oct 4, 2012

@weierophinney weierophinney Merge branch 'hotfix/358' into develop
Forward port #358
9a1e632
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment