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 f187ace

Browse filesBrowse files
committed
Minor tweaks
1 parent df00e99 commit f187ace
Copy full SHA for f187ace

File tree

Expand file treeCollapse file tree

1 file changed

+9
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-7
lines changed

‎reference/twig_reference.rst

Copy file name to clipboardExpand all lines: reference/twig_reference.rst
+9-7Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,13 @@ If ``relative`` is enabled, it'll create a path relative to the current path.
283283

284284
.. code-block:: twig
285285
286+
{# consider that the app defines an 'app_blog' route with the path '/blog/{page}' #}
287+
286288
{{ path(name = 'app_blog', parameters = {page: 3}, relative = false) }}
287-
{# output (depending on the route configuration): /blog/3 or /blog?page=3 #}
289+
{# output: /blog/3 #}
288290
289291
{{ path(name = 'app_blog', parameters = {page: 3}, relative = true) }}
290-
{# output (depending on the route configuration): blog/3 or ?page=3 #}
292+
{# output: blog/3 #}
291293
292294
.. seealso::
293295

@@ -313,13 +315,13 @@ Returns the absolute URL (with scheme and host) for the given route. If
313315

314316
.. code-block:: twig
315317
318+
{# consider that the app defines an 'app_blog' route with the path '/blog/{page}' #}
319+
316320
{{ url(name = 'app_blog', parameters = {page: 3}, schemeRelative = false) }}
317-
{# output (depending on the route configuration): http://example.org/blog/3
318-
or http://example.org/blog?page=3 #}
321+
{# output: http://example.org/blog/3 #}
319322
320323
{{ url(name = 'app_blog', parameters = {page: 3}, schemeRelative = true) }}
321-
{# output (depending on the route configuration): //example.org/blog/3
322-
or //example.org/blog?page=3 #}
324+
{# output: //example.org/blog/3 #}
323325
324326
.. seealso::
325327

@@ -784,7 +786,7 @@ The above example will be rendered as:
784786

785787
.. code-block:: html
786788

787-
<abbr title="App\Controller\ProductController">ProductController</abbr>
789+
<abbr title="App\Controller\ProductController">ProductController</abbr>::list()
788790

789791
format_args
790792
~~~~~~~~~~~

0 commit comments

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