Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4eafdbd

Browse filesBrowse files
committed
[#3837] Fixes thanks to stof and WouterJ
1 parent 560e010 commit 4eafdbd
Copy full SHA for 4eafdbd

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎book/templating.rst‎

Copy file name to clipboardExpand all lines: book/templating.rst
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -991,10 +991,10 @@ assets won't be cached when deployed. For example, ``/images/logo.png`` might
991991
look like ``/images/logo.png?v2``. For more information, see the :ref:`ref-framework-assets-version`
992992
configuration option.
993993

994-
.. _`
994+
.. _`book-templating-version-by-asset`:
995995

996996
.. versionadded:: 2.5
997-
Setting versioned URLs on an asset-by-asset basis were introduced in Symfony 2.5.
997+
Setting versioned URLs on an asset-by-asset basis was introduced in Symfony 2.5.
998998

999999
If you need to set a version for a specific asset, you can set the fourth
10001000
argument (or the ``version`` argument) to the desired version:
@@ -1003,14 +1003,14 @@ argument (or the ``version`` argument) to the desired version:
10031003

10041004
.. code-block:: html+jinja
10051005

1006-
<img src="{{ asset('images/logo.png', version=3.0) }}" alt="Symfony!" />
1006+
<img src="{{ asset('images/logo.png', version='3.0') }}" alt="Symfony!" />
10071007

10081008
.. code-block:: html+php
10091009

10101010
<img src="<?php echo $view['assets']->getUrl('images/logo.png', null, false, '3.0') ?>" alt="Symfony!" />
10111011

10121012
If you dont give a version or pass ``null``, the default package version
1013-
(from :ref:`ref-framework-assets-version`) wil be used. If you pass ``false``,
1013+
(from :ref:`ref-framework-assets-version`) will be used. If you pass ``false``,
10141014
versioned URL will be deactivated for this asset.
10151015

10161016
.. versionadded:: 2.5

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.