Example #1
0
 public function indexAction()
 {
     if ($this->request->isAjax() == true) {
         $entitytype = $this->request->getPost("entitytype");
         $entityid = $this->request->getPost("entityid");
         $request_uri = $this->request->getPost("request_uri");
         $logger = new \WH\Model\Logger();
         $logger->setEntityId($entityid);
         $logger->setRequestUri($request_uri);
         $logger->setSource('web');
         $logger->setEntityType($entitytype);
         $logger->saveViewLogs();
     }
     exit;
 }