Skip to content

Commit

Permalink
[Reference][Form Types] Add missing docs for "action" and "method" op…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
bicpi committed Jan 23, 2014
1 parent f285d93 commit 1bf3ce0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reference/forms/types/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ on all fields.

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

.. include:: /reference/forms/types/options/action.rst.inc

.. include:: /reference/forms/types/options/method.rst.inc
11 changes: 11 additions & 0 deletions reference/forms/types/options/action.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. versionadded:: 2.3
The ``action`` option was introduced in Symfony 2.3.

action
~~~~~~

**type**: ``string`` **default**: empty string

This option specifies where to send the form's data on submission (usually an
URI). An empty value is considered a same-document references, i.e. the form
will be submitted to the same URI that rendered the form.
20 changes: 20 additions & 0 deletions reference/forms/types/options/method.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. versionadded:: 2.3
The ``method`` option was introduced in Symfony 2.3.

method
~~~~~~

**type**: ``string`` **default**: ``POST``

This option specifies the HTTP method used to submit the form's data. Possible
values are:
* POST
* GET
* PUT
* DELETE
* PATCH
.. note::
Using ``PUT``, ``PATCH`` and ``DELETE`` is only allowed if
:ref:`configuration-framework-http_method_override` is enabled.

0 comments on commit 1bf3ce0

Please sign in to comment.