Forums / Discussions / Fetching User Objects with PHP - part 1

Friday 24 September 2010 7:57:12 am - 1 reply

» Read full tutorial


At the end of this tutorial you should be comfortable with exporting user information from PHP scripts.

Author Message

Lars Fugelseth

Moderated by: Nicolas Pastorino

Friday 01 October 2010 4:53:20 am

I think there is a small error in the example for fetching the current logged in user.
The current user is fetch with the following method:

$user = eZUser::currentUser();
$user = $users['name'];
$cli->output( 'Username: ' . $user->attribute( 'login' ) ); 
$cli->output( 'Email: ' . $user->attribute( 'email' ) )

You must be logged in to post messages in this topic!