Skip to content

Update controller.rst #3304

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 1 commit into from
Dec 19, 2013
Merged

Update controller.rst #3304

merged 1 commit into from
Dec 19, 2013

Conversation

dczech
Copy link
Contributor

@dczech dczech commented Dec 9, 2013

Invalid flash example for php template leading to::

FatalErrorException: Error: Call to undefined method Symfony\Bundle\FrameworkBundle\Templating\Helper\SessionHelper::getFlashBag()

Invalid flash example for php template leading to::

FatalErrorException: Error: Call to undefined method Symfony\Bundle\FrameworkBundle\Templating\Helper\SessionHelper::getFlashBag()
@bicpi
Copy link
Contributor

bicpi commented Dec 9, 2013

The removed line in your PR is the correct one in Symfony 2.3, see http://symfony.com/doc/2.3/components/http_foundation/sessions.html#flash-messages (and since 2.1).

@dczech
Copy link
Contributor Author

dczech commented Dec 9, 2013

This is not a Session instance but SessionHelper, which doesn't share Session API see: https://github.com/symfony/FrameworkBundle/blob/2.3/Templating/Helper/SessionHelper.php

@wouterj
Copy link
Member

wouterj commented Dec 9, 2013

👍

@bicpi
Copy link
Contributor

bicpi commented Dec 9, 2013

Oh yes, I'm sorry! 😳

@dczech
Copy link
Contributor Author

dczech commented Dec 9, 2013

BTW this change applies to all symfony versions

weaverryan added a commit that referenced this pull request Dec 19, 2013
@weaverryan weaverryan merged commit 899b48a into symfony:2.3 Dec 19, 2013
@weaverryan
Copy link
Member

Ah yes, great find and fix - thanks very much @dczech!

@dczech dczech deleted the patch-1 branch January 3, 2014 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants