Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1bf3ce0

Browse files
committed
[Reference][Form Types] Add missing docs for "action" and "method" option
1 parentf285d93 commit1bf3ce0

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

‎reference/forms/types/form.rst

Lines 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
Lines 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 introducedin Symfony2.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.
Lines 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 Symfony2.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)

[8]ページ先頭

©2009-2025 Movatter.jp