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

Commitf6a41b9

Browse files
committed
minor#3630 Minor tweaks to form action/method (weaverryan)
This PR was merged into the 2.3 branch.Discussion----------Minor tweaks to form action/methodThis adds a little bit more to#3436.The toughest part is the wording around explaining the PATCH behavior - suggestions warmly welcomed :).| Q | A| ------------- | ---| Doc fix? | no| New docs? | no| Applies to | 2.3+| Fixed tickets | noneThanks!Commits-------34f5b0c Some slight reordering of the form options - and also tweaking language around PATCH behavior
2 parentsae755e0 +34f5b0c commitf6a41b9

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

‎reference/forms/types/form.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ See :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType`.
99
The ``form`` type predefines a couple of options that are then available
1010
on all fields.
1111

12-
..include::/reference/forms/types/options/compound.rst.inc
13-
1412
..include::/reference/forms/types/options/data.rst.inc
1513

1614
..include::/reference/forms/types/options/data_class.rst.inc
1715

16+
..include::/reference/forms/types/options/action.rst.inc
17+
18+
..include::/reference/forms/types/options/method.rst.inc
19+
1820
..include::/reference/forms/types/options/empty_data.rst.inc
1921

22+
..include::/reference/forms/types/options/compound.rst.inc
23+
2024
.. _reference-form-option-required:
2125

2226
..include::/reference/forms/types/options/required.rst.inc
@@ -68,7 +72,3 @@ on all fields.
6872
.. _reference-form-option-pattern:
6973

7074
..include::/reference/forms/types/options/pattern.rst.inc
71-
72-
..include::/reference/forms/types/options/action.rst.inc
73-
74-
..include::/reference/forms/types/options/method.rst.inc

‎reference/forms/types/options/action.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ action
66

77
**type**: ``string``**default**: empty string
88

9-
This option specifies where to send the form's data on submission (usuallyan
9+
This option specifies where to send the form's data on submission (usuallya
1010
URI). Its value is rendered as the ``action`` attribute of the ``form``
1111
element. An empty value is considered a same-document reference, i.e. the form
1212
will be submitted to the same URI that rendered the form.

‎reference/forms/types/options/method.rst.inc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ used to decide whether to process the form submission in the
2626

2727
..note:
2828

29-
Only the PATCH method allows submitting partial data without that missing
30-
fields are set to ``null``in the underlyingdata (preserving default
31-
values,if any).
29+
The PATCH method allows submitting partial data. In other words,if the
30+
submitted form data is missing certain fields, those will be ignored
31+
and the defaultvalues (if any) will be used. With all other HTTP methods,
32+
if the submitted form data is missing some fields, those fields are set
33+
to ``null``.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp