Joomla 2.5 检查用户登录

2022-01-06 00:00:00 php javascript html css joomla

如何检查用户是否已登录 Joomla 2.5?我似乎只能找到旧版本的 joomla 的代码片段.是一样的吗?

How do i check if a user is logged in in Joomla 2.5? I can only seem to find code snippets for the older versions of joomla. Is it the same?

推荐答案

if(JFactory::getUser()->id)
{
//user has logged in
}

相关文章