$user_id=Engine_Api::()_->user()->getviewer()->getIdentity();
$user_info=Engine_Api::_()->user()->getUser($user_id);
Then you get an array $user_info
Now to get let us suppose email of user we use
$user_info['email'];
print_r($user_info) to get data array and check other key's
The other keys are
$user_info=Engine_Api::_()->user()->getUser($user_id);
Then you get an array $user_info
Now to get let us suppose email of user we use
$user_info['email'];
print_r($user_info) to get data array and check other key's
The other keys are
- user_id
- username
- displayname
- photo_id
- status
- status_date
- password
- salt
- locale
- language
- timezone
- search
- show_profileviews
- level_id
- invites_used
- extra_invites
- enabled
- verified
- approved
- creation_date
- creation_ip
- modified_date
- lastlogin_date
- lastlogin_ip
- update_date
- member_count
- view_count
No comments:
Post a Comment