File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,6 @@ delete it by matching on GET, PUT and DELETE.
74
74
Faking the Method with ``_method ``
75
75
----------------------------------
76
76
77
- .. note ::
78
-
79
- The ``_method `` functionality shown here is disabled by default in Symfony 2.2
80
- and enabled by default in Symfony 2.3 and above. To control it in Symfony 2.2, you
81
- must call :method: `Request::enableHttpMethodParameterOverride <Symfony\\ Component\\ HttpFoundation\\ Request::enableHttpMethodParameterOverride> `
82
- before you handle the request (e.g. in your front controller). In Symfony
83
- 2.3, use the :ref: `configuration-framework-http_method_override ` option.
84
-
85
77
Unfortunately, life isn't quite this simple, since most browsers do not support
86
78
sending PUT and DELETE requests via the `method ` attribute in an HTML form. Fortunately,
87
79
Symfony provides you with a simple way of working around this limitation. By including
@@ -90,3 +82,8 @@ will use this as the method when matching routes. Forms automatically include a
90
82
hidden field for this parameter if their submission method is not GET or POST.
91
83
See :ref: `the related chapter in the forms documentation<book-forms-changing-action-and-method> `
92
84
for more information.
85
+
86
+ .. tip ::
87
+
88
+ You can disable the ``_method `` functionality shown here using the
89
+ :ref: `configuration-framework-http_method_override ` option.
You can’t perform that action at this time.
0 commit comments