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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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

» Read full tutorial

Introduction

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

Author Message

Lars Fugelseth

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!