Skip to content
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

Add isSubmitted call #5972

Closed
wants to merge 2 commits into from
Closed

Add isSubmitted call #5972

wants to merge 2 commits into from

Conversation

DanielSiepmann
Copy link
Contributor

@javiereguiluz
Copy link
Member

@DanielSiepmann thanks for submitting this fix. I agree that we should comply with the best practices here. By the way, could you please swap the order of the methods:

if ($form->isSubmitted() && $form->isValid()) {

To follow best practice swap order of calls.
@wouterj
Copy link
Member

wouterj commented Dec 7, 2015

👍

@DanielSiepmann
Copy link
Contributor Author

Thanks, I've updated that and will match the order in #5970, too.

@xabbuh
Copy link
Member

xabbuh commented Dec 7, 2015

👍

@wouterj
Copy link
Member

wouterj commented Dec 7, 2015

Thanks for your quick reactions Daniel! I've now merged this into the 2.3 docs and will merge it into the latest versions from there (fyi, that's why this PR is marked as closed).

wouterj added a commit that referenced this pull request Dec 7, 2015
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #5972).

Discussion
----------

Add isSubmitted call

Streamline with http://symfony.com/doc/current/book/forms.html#handling-form-submissions
Following best practice: http://symfony.com/doc/current/best_practices/forms.html

Commits
-------

d8c93e2 Add isSubmitted call
@wouterj wouterj closed this Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants