0
我要显示这样的模块:如何找出该用户登录
if (the user is logged in){
\\ module should be this html(1)
}else{
\\ module should be like this html(2)
}
这可能吗? 我应该在模板index.php中添加......吗?
我要显示这样的模块:如何找出该用户登录
if (the user is logged in){
\\ module should be this html(1)
}else{
\\ module should be like this html(2)
}
这可能吗? 我应该在模板index.php中添加......吗?
$user = JFactory::getUser();
if ($user->id){
\\ module should be this html(1)
}else{
\\ module should be like this html(2)
}