Skip to content

Commit 32bd0b1

Browse files
committed
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
2 parents 36f2e1f + aca0944 commit 32bd0b1

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

book/templating.rst

+13-4
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,14 @@ argument (or the ``version`` argument) to the desired version:
10351035

10361036
.. code-block:: html+php
10371037

1038-
<img src="<?php echo $view['assets']->getUrl('images/logo.png', null, false, '3.0') ?>" alt="Symfony!" />
1039-
1040-
If you dont give a version or pass ``null``, the default package version
1038+
<img src="<?php echo $view['assets']->getUrl(
1039+
'images/logo.png',
1040+
null,
1041+
false,
1042+
'3.0'
1043+
) ?>" alt="Symfony!" />
1044+
1045+
If you don't give a version or pass ``null``, the default package version
10411046
(from :ref:`ref-framework-assets-version`) will be used. If you pass ``false``,
10421047
versioned URL will be deactivated for this asset.
10431048

@@ -1055,7 +1060,11 @@ If you need absolute URLs for assets, you can set the third argument (or the
10551060

10561061
.. code-block:: html+php
10571062

1058-
<img src="<?php echo $view['assets']->getUrl('images/logo.png', null, true) ?>" alt="Symfony!" />
1063+
<img src="<?php echo $view['assets']->getUrl(
1064+
'images/logo.png',
1065+
null,
1066+
true
1067+
) ?>" alt="Symfony!" />
10591068

10601069
.. index::
10611070
single: Templating; Including stylesheets and JavaScripts

0 commit comments

Comments
 (0)