Skip to content

Commit

Permalink
Correct spelling & grammar in 4.4 forms.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
gnito-org committed Dec 14, 2021
1 parent 62c0653 commit f2c0186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ added a submit button with a custom label for submitting the form to the server.
Creating Form Classes
~~~~~~~~~~~~~~~~~~~~~

Symfony recommends to put as little logic as possible in controllers. That's why
Symfony recommends putting as little logic as possible in controllers. That's why
it's better to move complex forms to dedicated classes instead of defining them
in controller actions. Besides, forms defined in classes can be reused in
multiple actions and services.
Expand Down Expand Up @@ -385,7 +385,7 @@ written into the form object::
{
public function new(Request $request): Response
{
// just setup a fresh $task object (remove the example data)
// just set up a fresh $task object (remove the example data)
$task = new Task();

$form = $this->createForm(TaskType::class, $task);
Expand Down Expand Up @@ -665,7 +665,7 @@ The ``required`` Option

The most common option is the ``required`` option, which can be applied to any
field. By default, this option is set to ``true``, meaning that HTML5-ready
browsers will require to fill in all fields before submitting the form.
browsers will require you to fill in all fields before submitting the form.

If you don't want this behavior, either
:ref:`disable client-side validation <forms-html5-validation-disable>` for the
Expand Down

0 comments on commit f2c0186

Please sign in to comment.