From 88d25961fcde58d6e8e66180d9dad2008db5a9a1 Mon Sep 17 00:00:00 2001 From: Carlos Granados Date: Mon, 12 Oct 2015 18:04:11 +0200 Subject: [PATCH] Clarify when we are talking about PHP and Twig In the description for versioned URLs and absolute URLs for assets, it was not clear if we were talking about Twig or PHP. Also we are usually first talking about Twig and then PHP, not the other way around --- book/templating.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/book/templating.rst b/book/templating.rst index 801d6cb813a..042ebb1b7f4 100644 --- a/book/templating.rst +++ b/book/templating.rst @@ -1024,8 +1024,8 @@ configuration option. .. versionadded:: 2.5 Setting versioned URLs on an asset-by-asset basis was introduced in Symfony 2.5. -If you need to set a version for a specific asset, you can set the fourth -argument (or the ``version`` argument) to the desired version: +If you need to set a version for a specific asset, you can set the ``version`` argument +if you are using Twig (or the fourth argument if you are using PHP) to the desired version: .. configuration-block:: @@ -1049,8 +1049,8 @@ versioned URL will be deactivated for this asset. .. versionadded:: 2.5 Absolute URLs for assets were introduced in Symfony 2.5. -If you need absolute URLs for assets, you can set the third argument (or the -``absolute`` argument) to ``true``: +If you need absolute URLs for assets, you can set the ``absolute`` argument +if you are using Twig (or the third argument if you are using PHP) to ``true``: .. configuration-block::