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 4555495

Browse filesBrowse files
committed
Update note wording for "method" option
1 parent 70ca6da commit 4555495
Copy full SHA for 4555495

File tree

Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed

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

Copy file name to clipboardExpand all lines: reference/forms/types/options/method.rst.inc
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ used to decide whether to process the form submission in the
1919
2020
.. note:
2121
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`.
22+
When the method is PUT, PATCH, or DELETE, Symfony will automatically
23+
render a ``_method`` hidden field in your form. This is used to "fake"
24+
these HTTP methods, as they're not supported on standard browsers. For
25+
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.