@@ -991,40 +991,43 @@ 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+ .. _`
995+
994996 ..versionadded ::2.5
995- Absolute URLsfor assets were introduced in Symfony 2.5.
997+ Setting versioned URLson an asset-by-asset basis were introduced in Symfony 2.5.
996998
997- If you needabsolute URLs forassets , you can set thethird argument (or the
998- `` absolute `` argument) to`` true `` :
999+ If you needto set a version fora specific asset , you can set thefourth
1000+ argument (or the `` version `` argument) tothe desired version :
9991001
10001002..configuration-block ::
10011003
10021004 ..code-block ::html+jinja
10031005
1004- <img src="{{ asset('images/logo.png',absolute=true ) }}" alt="Symfony!" />
1006+ <img src="{{ asset('images/logo.png',version=3.0 ) }}" alt="Symfony!" />
10051007
10061008 ..code-block ::html+php
10071009
1008- <img src="<?php echo $view['assets']->getUrl('images/logo.png', null, true) ?>" alt="Symfony!" />
1010+ <img src="<?php echo $view['assets']->getUrl('images/logo.png', null, false, '3.0') ?>" alt="Symfony!" />
1011+
1012+ 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 ``,
1014+ versioned URL will be deactivated for this asset.
10091015
10101016..versionadded ::2.5
1011- Versioned URLs for assets were introduced in Symfony 2.5.
1017+ Absolute URLs for assets were introduced in Symfony 2.5.
10121018
1013- If you needversioned URLs for assets, you can set thefourth argument (or the
1014- ``version `` argument) tothe desired version :
1019+ If you needabsolute URLs for assets, you can set thethird argument (or the
1020+ ``absolute `` argument) to`` true `` :
10151021
10161022..configuration-block ::
10171023
10181024 ..code-block ::html+jinja
10191025
1020- <img src="{{ asset('images/logo.png',version=3.0 ) }}" alt="Symfony!" />
1026+ <img src="{{ asset('images/logo.png',absolute=true ) }}" alt="Symfony!" />
10211027
10221028 ..code-block ::html+php
10231029
1024- <img src="<?php echo $view['assets']->getUrl('images/logo.png', null, false, '3.0') ?>" alt="Symfony!" />
1025-
1026- If you dont give a version or pass ``null ``, the default package version will
1027- be used. If you pass ``false ``, versioned URL will be deactivated.
1030+ <img src="<?php echo $view['assets']->getUrl('images/logo.png', null, true) ?>" alt="Symfony!" />
10281031
10291032..index ::
10301033 single: Templating; Including stylesheets and JavaScripts