Skip to content

Update forms.rst #7850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ to do with Symfony or any other library. It's quite simply a normal PHP object
that directly solves a problem inside *your* application (i.e. the need to
represent a task in your application). Of course, by the end of this article,
you'll be able to submit data to a ``Task`` instance (via an HTML form), validate
its data, and persist it to the database.
its data and persist it to the database.

.. index::
single: Forms; Create a form in a controller
Expand Down Expand Up @@ -114,7 +114,7 @@ from inside a controller::

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

In this example, you've added two fields to your form - ``task`` and ``dueDate`` -
Expand Down Expand Up @@ -259,7 +259,7 @@ your controller::
is called. Otherwise, changes done in the ``*_SUBMIT`` events aren't applied to the
view (like validation errors).

This controller follows a common pattern for handling forms, and has three
This controller follows a common pattern for handling forms and has three
possible paths:

#. When initially loading the page in a browser, the form is created and
Expand Down