03-17-2018, 02:23 PM
$user is a global variable that you can access. Your best method for public pages is to call $user->isLoggedIn() first before calling any commands. $user-> lets you access any of the users information in the users table.