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 1bf3ce0

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

File tree

Expand file treeCollapse file tree

3 files changed

+34
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+34
-0
lines changed

‎reference/forms/types/form.rst

Copy file name to clipboardExpand all lines: reference/forms/types/form.rst
+3Lines changed: 3 additions & 0 deletions
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
+11Lines changed: 11 additions & 0 deletions
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.
+20Lines changed: 20 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.