Joomla login component with JFactory::getUser -


i have component have own table users , when user login, jfactory::getuser didn't work. how joomla can understand user login? in model $this->setstatus('loggedin',true); can me direction, need write when user login

you should able this

$user =& jfactory::getuser(); if($user->id){     //user logged in } else{    //user not logged in } 

if asking. if not, please provide more info


Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -