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

Added tip for optional second parameter for form submissions.#6420

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
xabbuh merged 1 commit intosymfony:2.3frommichaeljoelphillips:submit_patch
Apr 6, 2016
Merged

Added tip for optional second parameter for form submissions.#6420

xabbuh merged 1 commit intosymfony:2.3frommichaeljoelphillips:submit_patch
Apr 6, 2016

Conversation

@michaeljoelphillips
Copy link

QA
Doc fix?yes
New docs?no
Applies toall
Fixed tickets#6415


When submitting a form via a "PATCH" request, you may want to update only a few
submitted fields. To achieve this, you may pass an optional second boolean
parameter to ``submit()``. Passing ``false`` will remove any missing fields
Copy link
Contributor

Choose a reason for hiding this comment

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

Should beForm::submit().

Copy link
Contributor

Choose a reason for hiding this comment

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

@HeahDude Shouldn't it be$form->submit(…) instead, as in the example above the tip?

Copy link
Contributor

Choose a reason for hiding this comment

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

I can't answer that :) I just thought it would be more clear to mention the class involved by that method.

ping @symfony/documentors !

alexislefebvre reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

I don't think that's necessary. Above this example we already link to the API docs ofsubmit() twice. That should be clear enough.

michaeljoelphillips reacted with thumbs up emoji
@HeahDude
Copy link
Contributor

👍 Looks good

@javiereguiluz
Copy link
Member

Nice tip! Thank you@Nomad145

@xabbuh
Copy link
Member

👍

@xabbuh
Copy link
Member

Thank you@Nomad145.

@xabbuhxabbuh merged commit153219a intosymfony:2.3Apr 6, 2016
xabbuh added a commit that referenced this pull requestApr 6, 2016
…ons. (Michael Phillips)This PR was merged into the 2.3 branch.Discussion----------Added tip for optional second parameter for form submissions.| Q              | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | all| Fixed tickets |#6415Commits-------153219a Added tip for optional second parameter for form submissions.
@michaeljoelphillipsmichaeljoelphillips deleted the submit_patch branchApril 9, 2016 14:06
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@michaeljoelphillips@HeahDude@javiereguiluz@xabbuh@alexislefebvre

[8]ページ先頭

©2009-2025 Movatter.jp