File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
reference/forms/types/options Expand file tree Collapse file tree 5 files changed +13
-13
lines changed 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
1
action
5
2
~~~~~~
6
3
4
+ .. versionadded:: 2 .3
5
+ The ``action`` option was introduced in Symfony 2 .3 .
6
+
7
7
** type** : ``string`` ** default** : empty string
8
8
9
9
This option specifies where to send the form' s data on submission (usually a
Original file line number Diff line number Diff line change 1
1
empty_value
2
2
~~~~~~~~~~~
3
3
4
- **type**: ``string`` or ``Boolean``
5
-
6
4
.. versionadded:: 2.3
7
5
Since Symfony 2.3, empty values are also supported if the ``expanded``
8
6
option is set to true.
9
7
8
+ **type**: ``string`` or ``Boolean``
9
+
10
10
This option determines whether or not a special "empty" option (e.g. "Choose an option")
11
11
will appear at the top of a select widget. This option only applies if the
12
12
``multiple`` option is set to false.
Original file line number Diff line number Diff line change 1
1
error_mapping
2
2
~~~~~~~~~~~~~
3
3
4
- **type**: ``array`` **default**: ``empty``
5
-
6
4
.. versionadded:: 2.1
7
5
The ``error_mapping`` option is new to Symfony 2.1.
8
6
7
+ **type**: ``array`` **default**: ``empty``
8
+
9
9
This option allows you to modify the target of a validation error.
10
10
11
11
Imagine you have a custom method named ``matchingCityAndZipCode`` that validates
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
1
method
5
2
~~~~~~
6
3
4
+ .. versionadded:: 2 .3
5
+ The ``method`` option was introduced in Symfony 2 .3 .
6
+
7
7
** type** : ``string`` ** default** : ``POST``
8
8
9
9
This option specifies the HTTP method used to submit the form' s data. Its
Original file line number Diff line number Diff line change 1
- .. versionadded:: 2.2
2
- The ``with_minutes`` option was introduced in Symfony 2.2 .
3
-
4
1
with_minutes
5
2
~~~~~~~~~~~~
6
3
4
+ .. versionadded:: 2.2
5
+ The ``with_minutes`` option was introduced in Symfony 2.2 .
6
+
7
7
**type **: ``Boolean`` **default**: ``true``
8
8
9
9
Whether or not to include minutes in the input. This will result in an additional
You can’t perform that action at this time.
0 commit comments