New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No results at all #7
Comments
Have you checked out from git or have you use composer? The current readme won't work with the latest composer version. Need to publish a new version to composer the next days... |
Oh I see, so the composer version is old? |
Try using 'dev-master' as version in composer. |
That's what I'm using "piwik/device-detector": "dev-master". $userAgent = $_SERVER['HTTP_USER_AGENT'];
$dd = new DeviceDetector($userAgent);
$dd->discardBotInformation();
$dd->parse();
var_dump($dd->getClient()); // outputs NULL |
Please have look at test.php. |
Thanks @sgiehl I omitted that from my snippet above but it was finding the class ok. I was even trying to follow through the source code to find what was happening, the DeviceDetector object defiantly had the User Agent string but I didn't have time to trace the problem. I don't know what I was doing wrong, but I dropped back to version 1 and now I'm getting everything I need – that'll do for now. |
Improved detection of Wiko smartphones
Really like the look of this library, I just don't seem to be able to get any results at all. Using HTTP_USER_AGENT or static user agents from the test fixtures. I'm on php 5.3.3 and using the usage example from the read me.
The text was updated successfully, but these errors were encountered: