Hi everyone,
I want to know if it's possible using a PHP code to get the current user (logged user). If it's possible how to do it ?
Thanks,
version 4.5.1
Hi everyone,
I want to know if it's possible using a PHP code to get the current user (logged user). If it's possible how to do it ?
Thanks,
version 4.5.1
Yes, you can get it with the current_user global variable.
PHP Code:global $current_user;
echo $current_user->user_name;
- Sugar Team
dpa Technology LLC
e-mail: dpaDeveloper@dpatechnology.com
web: http://www.dpatechnology.com
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks