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

Commit

Permalink
Update zend.view.helpers.url.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoconnell committed Mar 31, 2015
1 parent 3525f19 commit 3a87ff0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/src/modules/zend.view.helpers.url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,35 @@ The above code sample would output:
<a href="/news/details/42?commentPage=3#comments">Comment Section of News #42</a>


.. _zend.view.helpers.initial.url.fully-qualified-domain-name:

Fully Qualified Domain Name
---------------------------

Another possible entry within the ``$options`` array is to output a fully qualified domain name (absolute URL), denoted using the ``force_canonical`` key:

.. code-block:: html+php
:linenos:

<?php
$url = $this->url(
'news',
array(),
array(
'force_canonical' => true,
)
);
?>
<a href="<?php echo $url; ?>">News Index</a>

The above code sample would output:

.. code-block:: html
:linenos:

<a href="http://www.example.com/news">News Index</a>


.. _zend.view.helpers.initial.url.reusing-matched-parameters:

Reusing Matched Parameters
Expand Down

0 comments on commit 3a87ff0

Please sign in to comment.