File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -991,10 +991,10 @@ assets won't be cached when deployed. For example, ``/images/logo.png`` might
991991look like ``/images/logo.png?v2 ``. For more information, see the :ref: `ref-framework-assets-version `
992992configuration 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
999999If you need to set a version for a specific asset, you can set the fourth
10001000argument (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
10121012If 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 ``,
10141014versioned URL will be deactivated for this asset.
10151015
10161016.. versionadded :: 2.5
You can’t perform that action at this time.
0 commit comments