How to get the Jomsocial User Object


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Return current user
  2. $user =& CFactory::getUser();
  3. // Return user with given id
  4. $user =& CFactory::getUser($userId);
  5.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.