Using the FEUP_User class in PHP
-
Hi all,
We’ve gotten a couple of questions about using the PHP class inside of theme files. You can use the class to pull any user field. Username and User_ID are stored as properties, so you can get them like this:
$User = new FEUP_User; echo $User->Username; echo $User->User_ID;
To get any other field, you can use the “Get_Field_Value” method, like so:
$User = new FEUP_User; echo $User->Get_Field_Value("field name");
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using the FEUP_User class in PHP’ is closed to new replies.