Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Invalid flash example for php template leading to::FatalErrorException: Error: Call to undefined method Symfony\Bundle\FrameworkBundle\Templating\Helper\SessionHelper::getFlashBag()
The removed line in your PR is the correct one in Symfony 2.3, seehttp://symfony.com/doc/2.3/components/http_foundation/sessions.html#flash-messages (and since 2.1). |
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 |
👍 |
Oh yes, I'm sorry! 😳 |
BTW this change applies to all symfony versions |
Ah yes, great find and fix - thanks very much@dczech! |
Invalid flash example for php template leading to::
FatalErrorException: Error: Call to undefined method Symfony\Bundle\FrameworkBundle\Templating\Helper\SessionHelper::getFlashBag()