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

Show messages on twig without reload / redirecting #17

Closed
mai92 opened this issue Feb 4, 2016 · 5 comments
Closed

Show messages on twig without reload / redirecting #17

mai92 opened this issue Feb 4, 2016 · 5 comments

Comments

@mai92
Copy link

mai92 commented Feb 4, 2016

I have a view with a form, i want show the flash messages if my form validation got fail, the problem is when showing messages to my view, the messages just showed when the page is reloaded , or when redirecting to other routes/view ...

@deflox
Copy link

deflox commented Feb 4, 2016

How did you even get the message in the twig view? I'm trying to figuring this out for 2 hours now but I just don't get the message...

@mai92
Copy link
Author

mai92 commented Feb 4, 2016

Adding flash to global variable in twig container, this our Current Code, may help you.

@deflox
Copy link

deflox commented Feb 6, 2016

Thanks I will take a look at it.

Found a solution after asking my question on stackoverflow.

The answer may help you too.

@mai92
Copy link
Author

mai92 commented Feb 6, 2016

Thanks a lot , really helpful ...

@akrabat
Copy link
Member

akrabat commented Oct 22, 2017

Use addMessageNow() to add a message to be retrieved in the same request.

@akrabat akrabat closed this as completed Oct 22, 2017
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

No branches or pull requests

3 participants