Permalink
Browse files

minor #4777 Update templating.rst (ifdattic)

This PR was squashed before being merged into the 2.5 branch (closes #4777).

Discussion
----------

Update templating.rst

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.5
| Fixed tickets |

Commits
-------

aca0944 Update templating.rst
  • Loading branch information...
wouterj committed Jan 8, 2015
2 parents 36f2e1f + aca0944 commit 32bd0b1f5b2d9c7a119f08ea038d039a9216f058
Showing with 13 additions and 4 deletions.
  1. +13 −4 book/templating.rst
@@ -1035,9 +1035,14 @@ argument (or the ``version`` argument) to the desired version:
.. code-block:: html+php
<img src="<?php echo $view['assets']->getUrl('images/logo.png', null, false, '3.0') ?>" alt="Symfony!" />
If you dont give a version or pass ``null``, the default package version
<img src="<?php echo $view['assets']->getUrl(
'images/logo.png',
null,
false,
'3.0'
) ?>" alt="Symfony!" />
If you don't give a version or pass ``null``, the default package version
(from :ref:`ref-framework-assets-version`) will be used. If you pass ``false``,
versioned URL will be deactivated for this asset.
@@ -1055,7 +1060,11 @@ If you need absolute URLs for assets, you can set the third argument (or the
.. code-block:: html+php
<img src="<?php echo $view['assets']->getUrl('images/logo.png', null, true) ?>" alt="Symfony!" />
<img src="<?php echo $view['assets']->getUrl(
'images/logo.png',
null,
true
) ?>" alt="Symfony!" />
.. index::
single: Templating; Including stylesheets and JavaScripts

0 comments on commit 32bd0b1

Please sign in to comment.