8000 [reference][forms] fixed typo · chtitux/symfony-docs@06a8e2f · GitHub
[go: up one dir, main page]

Skip to content

Commit 06a8e2f

Browse files
author
Douglas Greenshields
committed
[reference][forms] fixed typo
1 parent cb295cf commit 06a8e2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/forms/twig_reference.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ or collection of fields, each underlying form row will be rendered.
3939
.. code-block:: jinja
4040
4141
{# render a widget, but add a "foo" class to it #}
42-
{{ form_wiget(form.name, { 'attr': {'class': 'foo'} }) }}
42+
{{ form_widget(form.name, { 'attr': {'class': 'foo'} }) }}
4343
4444
The second argument to ``form_widget`` is an array of variables. The most
4545
common variable is ``attr``, which is an array of HTML attributes to apply
@@ -55,7 +55,7 @@ label, errors and widget.
5555
.. code-block:: jinja
5656
5757
{# render a field row, but add a "foo" class to it #}
58-
{{ form_wiget(form.name, { 'attr': {'class': 'foo'} }) }}
58+
{{ form_widget(form.name, { 'attr': {'class': 'foo'} }) }}
5959
6060
The second argument to ``form_row`` is an array of variables. The most
6161
common variable is ``attr``, which is an array of HTML attributes to apply

0 commit comments

Comments
 (0)
0