File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ And the corresponding template:
330
330
<div>{{ error }}</div>
331
331
{% endif %}
332
332
333
- <form action="{% path " _security_check" % }" method="post">
333
+ <form action="{{ path(' _security_check') } }" method="post">
334
334
<label for="username">Username:</label>
335
335
<input type="text" id="username" name="_username" value="{{ last_username }}" />
336
336
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ updated by changing the configuration:
227
227
228
228
.. code-block :: jinja
229
229
230
- <a href="{% path 'hello' with { 'name': 'Thomas' } % }">Greet Thomas!</a>
230
+ <a href="{{ path( 'hello', { 'name': 'Thomas' }) } }">Greet Thomas!</a>
231
231
232
232
The ``path `` tag takes the route name and an array of parameters as arguments.
233
233
The route name is the main key under which routes are referenced and the
You can’t perform that action at this time.
0 commit comments