Skip to content

Commit 1bf3ce0

Browse files
committed
[Reference][Form Types] Add missing docs for "action" and "method" option
1 parent f285d93 commit 1bf3ce0

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

reference/forms/types/form.rst

+3
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ on all fields.
5959

6060
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc
6161

62+
.. include:: /reference/forms/types/options/action.rst.inc
63+
64+
.. include:: /reference/forms/types/options/method.rst.inc
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.. versionadded:: 2.3
2+
The ``action`` option was introduced in Symfony 2.3.
3+
4+
action
5+
~~~~~~
6+
7+
**type**: ``string`` **default**: empty string
8+
9+
This option specifies where to send the form's data on submission (usually an
10+
URI). An empty value is considered a same-document references, i.e. the form
11+
will be submitted to the same URI that rendered the form.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. versionadded:: 2.3
2+
The ``method`` option was introduced in Symfony 2.3.
3+
4+
method
5+
~~~~~~
6+
7+
**type**: ``string`` **default**: ``POST``
8+
9+
This option specifies the HTTP method used to submit the form's data. Possible
10+
values are:
11+
12+
* POST
13+
* GET
14+
* PUT
15+
* DELETE
16+
* PATCH
17+
18+
.. note::
19+
Using ``PUT``, ``PATCH`` and ``DELETE`` is only allowed if
20+
:ref:`configuration-framework-http_method_override` is enabled.

0 commit comments

Comments
 (0)