Skip to content

Commit

Permalink
Document Url::build() options array
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Sep 30, 2016
1 parent 92f7cff commit aa55923
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions en/views/helpers/url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ URL for named route::
// );
/products/i-m-slug

.. versionadded:: 3.3.5
The ``url()`` method now allows an array as second argument defining options::

$this->Url->build('/posts', [
'escape' => false.
'fullBase' => true
]);

This allows for disabling espacing the URL now, for example.

If you are generating URLs for CSS, Javascript or image files there are helper
methods for each of these asset types::

Expand Down

0 comments on commit aa55923

Please sign in to comment.