For getting user basic info in social engine first you need to get the login user object using following function:
$user = Engine_Api::_()->user()->getViewer();
After that you can get user info using $user object like this:
Get User email:
$useremail = $user ->email
Get User Display name:
$userdisplayname = $user->displayname
Get User name:
$username = $user->username
same like the above examples you can get any column value from users table.
$user = Engine_Api::_()->user()->getViewer();
After that you can get user info using $user object like this:
Get User email:
$useremail = $user ->email
Get User Display name:
$userdisplayname = $user->displayname
Get User name:
$username = $user->username
same like the above examples you can get any column value from users table.
0 Comments