User Online in model... ?

  • Thread starter Thread starter Deleted member 10469
  • Start date Start date
D

Deleted member 10469

Guest
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? :)
 
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 :
PHP:
<?php
 
namespace Kyna\AccueilBundle\Controller;
 
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
 
class AccueilController extends Controller
{
    public function indexAction()
    {
        // Xenforo integration
        $this->container->get('kyna_xenforo.xenforointegration');
        $sessionModel = \XenForo_Model::create('XenForo_Model_Session');
        $userOnline = $sessionModel->getSessionActivityRecords(array());
 
        var_dump($userOnline);
 
        return $this->render('KynaAccueilBundle:Accueil:Layout.html.twig');
    }
}
 
Top Bottom