-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[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,5 +7,6 @@ action | |
**type**: ``string`` **default**: empty string | ||
|
||
This option specifies where to send the form's data on submission (usually an | ||
URI). An empty value is considered a same-document references, i.e. the form | ||
URI). It's value is rendered as the ``action`` attribute of the ``form`` | ||
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.
|
||
element. An empty value is considered a same-document reference, i.e. the form | ||
will be submitted to the same URI that rendered the form. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,19 @@ method | |
|
||
**type**: ``string`` **default**: ``POST`` | ||
|
||
This option specifies the HTTP method used to submit the form's data. Possible | ||
values are: | ||
This option specifies the HTTP method used to submit the form's data. It's | ||
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.
|
||
value is rendered as the ``method`` attribute of the ``form`` element. | ||
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. This also impact the handling of requests in |
||
Possible values are: | ||
|
||
* POST | ||
* GET | ||
* PUT | ||
* DELETE | ||
* PATCH | ||
|
||
As PUT, DELETE and PATCH are not nativly supported by most clients, Symfony | ||
simulates them, 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. for more information see ... || to read more see ... |
||
|
||
.. note:: | ||
Using ``PUT``, ``PATCH`` and ``DELETE`` is only allowed if | ||
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. missing empty line |
||
:ref:`configuration-framework-http_method_override` is enabled. | ||
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. The wording is wrong. It is allowed to use them without using the http method override, if your client can override the method through the header or use the method natively (for instance when you are building an API rather than dealing with browsers as clients) |
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.
I think there's a
to
missing at the end of the sentence ([...] where to send [...] to.).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.
Mh, maybe both is possible? Is some native speaker around?
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.
I'm not native, but I also agree with @bicpi: imo both are possible.
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.
agreed, I think without the
to
sounds a little better. So, keep it as is