July 21, 2010
How to get user id in joomla1.5
hi guys
defined('_JEXEC') OR defined('_VALID_MOS') OR die( "Direct Access Is Not Allowed" );
echo "Hello";
echo "
User: ";
$jAp= & JFactory::getApplication();
$user =& JFactory::getUser();
$user->get('id');
echo $user;
?>
1 comment:
rockvilla
February 7, 2012 at 10:20 AM
joomla says can't convert object of JUser into string because of use of echo call
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
joomla says can't convert object of JUser into string because of use of echo call
ReplyDelete