如何检查用户是否已登录 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
}
这篇关于Joomla 2.5 检查用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!