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

Commit

Permalink
Merge pull request #1459 in develop
Browse files Browse the repository at this point in the history
  • Loading branch information
GeeH committed Apr 26, 2015
2 parents 22f52bc + 233bf7f commit a1e8410
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 a1e8410

Please sign in to comment.