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 f88d8af

Browse filesBrowse files
committed
Ref #3903 - Forms: normalize methods list for form_start / form_error / form_end
1 parent 7054cf4 commit f88d8af
Copy full SHA for f88d8af

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+12
-9
lines changed

‎book/forms.rst

Copy file name to clipboardExpand all lines: book/forms.rst
+12-9Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ from inside a controller::
111111

112112
Creating a form requires relatively little code because Symfony form objects
113113
are built with a "form builder". The form builder's purpose is to allow you
114-
to write simple form "recipes", and have it do all the heavy-lifting of actually
114+
to write simple form "recipes", and have it do all the gvy-lifting of actually
115115
building the form.
116116

117117
In this example, you've added two fields to your form - ``task`` and ``dueDate`` -
@@ -167,16 +167,19 @@ helper functions:
167167

168168
That's it! Just three lines are needed to render the complete form:
169169

170-
* ``form_start(form)`` - Renders the start tag of the form, including the
171-
correct enctype attribute when using file uploads;
170+
``form_start(form)``
171+
Renders the start tag of the form, including the correct enctype attribute
172+
when using file uploads.
172173

173-
* ``form_widget(form)`` - Renders all of the fields, which includes the field
174-
element itself, a label and any validation error messages for the field;
174+
``form_widget(form)``
175+
Renders all of the fields, which includes the field element itself, a label
176+
and any validation error messages for the field.
175177

176-
* ``form_end()`` - Renders the end tag of the form and any fields that have not
177-
yet been rendered, in case you rendered each field yourself. This is useful
178-
for rendering hidden fields and taking advantage of the automatic
179-
:ref:`CSRF Protection <forms-csrf>`.
178+
``form_end()``
179+
Renders the end tag of the form and any fields that have not
180+
yet been rendered, in case you rendered each field yourself. This is useful
181+
for rendering hidden fields and taking advantage of the automatic
182+
:ref:`CSRF Protection <forms-csrf>`.
180183

181184
.. seealso::
182185

0 commit comments

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