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

Flash messages not working in MVC layout? #71

Closed
zkwbbr opened this issue May 3, 2020 · 2 comments
Closed

Flash messages not working in MVC layout? #71

zkwbbr opened this issue May 3, 2020 · 2 comments

Comments

@zkwbbr
Copy link

zkwbbr commented May 3, 2020

I can get the flash messages working fine on plain PHP pages but when I try to use it in an MVC style setup, it doesn't work anymore. The set() and get() Session methods work fine though.

I thought maybe my MVC layout is the problem but I tried other flash message packages such as slim/flash and it works fine.

Anybody else having issues with flash messages?

Btw, the README doc doesn't seem to be updated, it says:

We can do so on a per-segment basis by calling the Segment keepFlash() method, or we can keep all flashes for all segments by calling the Session keepFlash() method.

But there's seem to be no keepFlash() method in the Session object

@harikt
Copy link
Member

harikt commented Sep 13, 2023

keepFlash method is inside the segment

public function keepFlash()
.

You are correct Inside the session object there is no keepFlash or clearAll

@harikt
Copy link
Member

harikt commented Sep 23, 2023

Documentation is fixed. Regarding the flash not sure why it is not working at your end as we have limited information of your code. So closing this for now.

@harikt harikt closed this as completed Sep 23, 2023
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

2 participants