@@ -535,7 +535,7 @@ Changing a Form's Method and Action
535
535
By default, a form is submitted to the same URI that rendered the form with
536
536
an HTTP POST request. This behavior can be changed using the :ref: `form-option-action `
537
537
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):
539
539
540
540
.. configuration-block ::
541
541
@@ -651,15 +651,15 @@ This defines a common form "workflow", which contains 3 different possibilities:
651
651
1) On the initial GET request (i.e. when the user "surfs" to your page),
652
652
build your form and render it;
653
653
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 `).
655
655
Then:
656
656
657
657
2) if the form is invalid, re-render the form (which will now contain errors);
658
658
3) if the form is valid, perform some action and redirect.
659
659
660
660
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.
663
663
664
664
.. _component-form-intro-validation :
665
665
0 commit comments