Skip to content

Commit aca0944

Browse files
ifdatticwouterj
authored andcommitted
Update templating.rst
1 parent 3f8cb31 commit aca0944

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

book/templating.rst

Lines changed: 13 additions & 4 deletions
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)