Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的组件有自己的用户表,当用户登录时,JFactory::getUser 不起作用。Joomla 如何理解用户正在登录?在我的模型中是 $this->setStatus('loggedIn',true); 有人可以帮我指导吗,用户登录时我需要写什么
你应该能够做到这一点
$user =& JFactory::getUser(); if($user->id){ //User is logged in } else{ //User not logged in }
如果那是你要问的。如果没有,请提供更多信息