User Methods


Introduced in Version 2.0


Is this user logged in? Returns true or false.

Because this is a boolean (true/false) we can create simple if statements to determine the current user's logged-istatus:

if ($user->isLoggedin()) {
    // Show some content specifically for logged-in users
} else {
    // Show different content for everyone else, such as a login form

Post Comment