Jump to content

How can I tell if a user is logged in in a template?

Recommended Posts

I need to differentiate between a logged in and logged out user in my template. Basically the pseudocode would look something like this


{if $logged_in}
you have to log in


Is there any simple way to do this directly in the template, without touching the controllers?

Share this post

Link to post
Share on other sites
  • 7 months later...
  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More