8000 [Reference][Form Types] Add missing docs for "action" and "method" option by bicpi · Pull Request #3436 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Reference][Form Types] Add missing docs for "action" and "method" option #3436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 4, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improvements after review
  • Loading branch information
bicpi committed Jan 23, 2014
commit 70ca6dad2f7fec42ea6e3f80435016ad3366b616
2 changes: 1 addition & 1 deletion reference/forms/types/options/action.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ action
**type**: ``string`` **default**: empty string

This option specifies where to send the form's data on submission (usually an
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a to missing at the end of the sentence ([...] where to send [...] to.).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mh, maybe both is possible? Is some native speaker around?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not native, but I also agree with @bicpi: imo both are possible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, I think without the to sounds a little better. So, keep it as is

URI). It's value is rendered as the ``action`` attribute of the ``form``
URI). Its value is rendered as the ``action`` attribute of the ``form``
element. An empty value is considered a same-document reference, i.e. the form
will be submitted to the same URI that rendered the form.
8 changes: 4 additions & 4 deletions reference/forms/types/options/method.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ method

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

This option specifies the HTTP method used to submit the form's data. It's
value is rendered as the ``method`` attribute of the ``form`` element and to
perform some consistency checks when evaluating the form after submission.
Possible values are:
This option specifies the HTTP method used to submit the form's data. Its
value is rendered as the ``method`` attribute of the ``form`` element and is
used to decide whether to process the form submission in the
``handleRequest()`` method after submission. Possible values are:

* POST
* GET
Expand Down
0