Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cecc762

Browse filesBrowse files
committed
Update "method" description
1 parent a636945 commit cecc762
Copy full SHA for cecc762

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed

‎reference/forms/types/options/method.rst.inc

Copy file name to clipboardExpand all lines: reference/forms/types/options/method.rst.inc
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ method
77
**type**: ``string`` **default**: ``POST``
88

99
This option specifies the HTTP method used to submit the form's data. It's
10-
value is rendered as the ``method`` attribute of the ``form`` element.
10+
value is rendered as the ``method`` attribute of the ``form`` element and to
11+
perform some consistency checks when evaluating the form after submission.
1112
Possible values are:
1213

1314
* POST
@@ -16,11 +17,10 @@ Possible values are:
1617
* DELETE
1718
* PATCH
1819

19-
As PUT, DELETE and PATCH are not nativly supported by most clients, Symfony
20-
simulates them. For more information see
21-
:doc:`/cookbook/routing/method_parameters`.
20+
.. note:
2221

23-
.. note::
24-
25-
Using ``PUT``, ``PATCH`` and ``DELETE`` is only allowed if
26-
:ref:`configuration-framework-http_method_override` is enabled.
22+
If not natively supported by a client, Symfony allows to simulate PUT,
23+
DELETE and PATCH requests by using a POST request instead and passing the
24+
intended "real" method by either using a ``X-HTTP-Method-Override``
25+
request header or by passing it via the special ``_method`` data field.
26+
For more information see :doc:`/cookbook/routing/method_parameters`.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.