7
7
** type** : ``string``** default** : ``POST``
8
8
9
9
This option specifies the HTTP method used to submit the form' s data. It' s
10
- value is rendered as the ``method`` attributeof the ``form`` element.
10
+ value is rendered as the ``method`` attributeof the ``form`` elementand to
11
+ perform some consistency checks when evaluating the form after submission.
11
12
Possible valuesare :
12
13
13
14
* POST
@@ -16,11 +17,10 @@ Possible values are:
16
17
* DELETE
17
18
* PATCH
18
19
19
- As PUT, DELETEand PATCH are not nativly supported by most clients, Symfony
20
- simulates them. For more information see
21
- :doc:`/ cookbook/ routing/ method_parameters`.
20
+ ..note :
22
21
23
- .. note::
24
-
25
- Using ``PUT``, ``PATCH``and ``DELETE`` is only allowedif
26
- :ref:`configuration- framework- http_method_override` is enabled.
22
+ If not natively supported by a client, Symfony allows to simulate PUT,
23
+ DELETEand PATCH requests by using a POST request insteadand passing the
24
+ intended" real" method by either using a ``X- HTTP- Method- Override``
25
+ request headeror by passing it via the special ``_method`` data field.
26
+ For more informationsee : doc:`/ cookbook/ routing/ method_parameters`.