Once a user is logged in, you will often need some particular information about the current user. You can access the currently logged in user using . This method is static, and can be used globally after the AuthComponent has been loaded. You can access it both as an instance method or as a static method:
You can access all the user's information(fields) from the users table except the password.