Skip to content

Commit 6f62e72

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Reference method Update form.rst
2 parents 6ac5f3f + b96705c commit 6f62e72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/form.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ Changing a Form's Method and Action
535535
By default, a form is submitted to the same URI that rendered the form with
536536
an HTTP POST request. This behavior can be changed using the :ref:`form-option-action`
537537
and :ref:`form-option-method` options (the ``method`` option is also used
538-
by ``handleRequest()`` to determine whether a form has been submitted):
538+
by :method:`Symfony\\Component\\Form\\Form::handleRequest` to determine whether a form has been submitted):
539539

540540
.. configuration-block::
541541

@@ -651,15 +651,15 @@ This defines a common form "workflow", which contains 3 different possibilities:
651651
1) On the initial GET request (i.e. when the user "surfs" to your page),
652652
build your form and render it;
653653

654-
If the request is a POST, process the submitted data (via ``handleRequest()``).
654+
If the request is a POST, process the submitted data (via :method:`Symfony\\Component\\Form\\Form::handleRequest`).
655655
Then:
656656

657657
2) if the form is invalid, re-render the form (which will now contain errors);
658658
3) if the form is valid, perform some action and redirect.
659659

660660
Luckily, you don't need to decide whether or not a form has been submitted.
661-
Pass the current request to the ``handleRequest()`` method. Then, the Form
662-
component will do all the necessary work for you.
661+
Just pass the current request to the :method:`Symfony\\Component\\Form\\Form::handleRequest`
662+
method. Then, the Form component will do all the necessary work for you.
663663

664664
.. _component-form-intro-validation:
665665

0 commit comments

Comments
 (0)