-
Notifications
You must be signed in to change notification settings - Fork 311
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
Session value access #126
Comments
What is in the app variable? This isn't a variable that the framework provides - to access the session you need to pass the session to the template, or use plain PHP inside the template, e.g. |
But how to pass session variables in base.html file? |
You can set it as a global variable, e.g.
|
Thank you sir it works. :) |
I have set session value like login= true , role = admin
How to access this data in base.html
I already try {{ app.session.get(‘user_id’) }}
But im not getting any value
Can you please help me?
The text was updated successfully, but these errors were encountered: