public function whichBrowser()
    {
        $result = [
            'browser' =>  $this->getBrowserDetector()->getName(),
            'browserVersion' => $this->getBrowserDetector()->getVersion(),
            'os' => $this->getOsDetector()->getName(),
            'osVersion' => $this->getOsDetector()->getVersion()
        ];
        $this->returnJson($result);
    }
public function whichBrowser()
    {
        $result = [
            'browser' =>  $this->getBrowserDetector()->getName(),
            'browserVersion' => $this->getBrowserDetector()->getVersion(),
            'os' => $this->getOsDetector()->getName(),
            'osVersion' => $this->getOsDetector()->getVersion()
        ];
        $this->returnJson($result);
    }
public function whichBrowser ( ) { $ result = [ 'browser' => $ this -> getBrowserDetector ( ) -> getName ( ) , 'browserVersion' => $ this -> getBrowserDetector ( ) -> getVersion ( ) , 'os' => $ this -> getOsDetector ( ) -> getName ( ) , 'osVersion' => $ this -> getOsDetector ( ) -> getVersion ( ) ] ; $ this -> returnJson ( $ result ) ; }
Render browser detection view
Render browser detection view