Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit4eafdbd

Browse files
committed
[#3837] Fixes thanks to stof and WouterJ
1 parent560e010 commit4eafdbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎book/templating.rst‎

Lines changed: 4 additions & 4 deletions
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 basiswere introduced in Symfony 2.5.
997+
Setting versioned URLs on an asset-by-asset basiswas 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)

[8]ページ先頭

©2009-2025 Movatter.jp