File tree 3 files changed +34
-0
lines changed
3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -59,3 +59,6 @@ on all fields.
59
59
60
60
.. include :: /reference/forms/types/options/invalid_message_parameters.rst.inc
61
61
62
+ .. include :: /reference/forms/types/options/action.rst.inc
63
+
64
+ .. include :: /reference/forms/types/options/method.rst.inc
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments