Created
October 4, 2010 14:53
-
-
Save khalillechelt/609817 to your computer and use it in GitHub Desktop.
Contao: get frontend user data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (FE_USER_LOGGED_IN) | |
{ | |
$this->import('FrontendUser', 'User'); | |
$userid = $this->User->id; | |
$membername = $this->User->firstname; | |
$lastname = $this->User->lastname; | |
echo "The user id is " .$userid. " and the user id is also " . $this->User->id; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in newer contao versions ...