• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

User Online in model... ?


Well-known member
Hello, I am looking the model with which I can retrieve the number of members and visitors currently online but can not find, do you know where it is please? :)


Well-known member
Thanks :)
I can retrieve the list of users online on my website, but how add the people who visit my site in the stats please ?

My code :
namespace Kyna\AccueilBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class AccueilController extends Controller
    public function indexAction()
        // Xenforo integration
        $sessionModel = \XenForo_Model::create('XenForo_Model_Session');
        $userOnline = $sessionModel->getSessionActivityRecords(array());
        return $this->render('KynaAccueilBundle:Accueil:Layout.html.twig');