-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[Reference][Form Types] Add missing docs for "action" and "method" option #3436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
1bf3ce0
83ff4b1
a636945
cecc762
70ca6da
4555495
793c8a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,8 @@ method | |
**type**: ``string`` **default**: ``POST`` | ||
|
||
This option specifies the HTTP method used to submit the form's data. It's | ||
value is rendered as the ``method`` attribute of the ``form`` element. | ||
value is rendered as the ``method`` attribute of the ``form`` element and to | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
perform some consistency checks when evaluating the form after submission. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, maybe (unless there's more going on), we should simply say "is used to decide whether to process the form submission in the |
||
Possible values are: | ||
|
||
* POST | ||
|
@@ -16,11 +17,10 @@ Possible values are: | |
* DELETE | ||
* PATCH | ||
|
||
As PUT, DELETE and PATCH are not nativly supported by most clients, Symfony | ||
simulates them. For more information see | ||
:doc:`/cookbook/routing/method_parameters`. | ||
.. note: | ||
|
||
.. note:: | ||
|
||
Using ``PUT``, ``PATCH`` and ``DELETE`` is only allowed if | ||
:ref:`configuration-framework-http_method_override` is enabled. | ||
If not natively supported by a client, Symfony allows to simulate PUT, | ||
DELETE and PATCH requests by using a POST request instead and passing the | ||
intended "real" method by either using a ``X-HTTP-Method-Override`` | ||
request header or by passing it via the special ``_method`` data field. | ||
For more information see :doc:`/cookbook/routing/method_parameters`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @stof Seems that Symfony also allows to simulate other HTTP methods, but the Do you think it's worth adding the request header method using X-HTTP-Method-Override to the cookbook? It does not seem to be documented yet. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about simply saying something like
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this seems to fit better in this form context. It's fixed. Having said that, there's no documentation about the usage of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its