我想得到当前登录的用户id在社区建设者pro插件我使用了这个代码,但它不适用于我
$user=&JFactory::getUser();
$user->id; 发布于 2012-11-28 15:56:01
尝试下面的代码。这是另一种方法。
$user =& JFactory::getUser();
$userId = $user->get( 'id' );Read more.
https://stackoverflow.com/questions/13599740
复制相似问题