Skip to content

Commit 3dadb0d

Browse files
committed
[Twig] [twig reference] add examples to functions (format_file, file_exercp, fragment_uri, controller, csrf_token)
1 parent ead46c5 commit 3dadb0d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

reference/twig_reference.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ Example 1
8585

8686
.. code-block:: twig
8787
88-
{{ fragment_uri(controller('App\\Controller\\HomeController::index'),
89-
absolute = true, strict = true, sign = true) }}
88+
{{ fragment_uri(controller('App\\Controller\\HomeController::index'), absolute = true, strict = true, sign = true) }}
9089
9190
Output:
9291

@@ -100,8 +99,7 @@ Example 2
10099

101100
.. code-block:: twig
102101
103-
{{ fragment_uri(controller('App\\Controller\\UserController::profile',
104-
{ 'id': 42 }), absolute = false, strict = false, sign = false) }}
102+
{{ fragment_uri(controller('App\\Controller\\UserController::profile', { 'id': 42 }), absolute = false, strict = false, sign = false) }}
105103
106104
Output:
107105

0 commit comments

Comments
 (0)