All Virtual Capabilities show me error
Posted: Fri Jul 10, 2015 7:56 pm
I try to use virtual capabilities is_smartphone, is_full_desktop, is_mobile but I get error:
It's exactly same code in your tutorial webpage.
Thank you for answer me...
I don't know what is my mistake because I use same code in http://wurfl.sourceforge.net/php_index.php...Uncaught exception 'InvalidArgumentException' with message 'no capability named [is_mobile] is present in wurfl.
Code: Select all
$wurflManagerFactory = new WURFL_WURFLManagerFactory($wurflConfig);
$wurflManager = $wurflManagerFactory->create();
$requestingDevice = $wurflManager->getDeviceForHttpRequest($_SERVER);
$is_wireless = $requestingDevice->getCapability('is_wireless_device'); // work fine
$is_tablet = $requestingDevice->getCapability('is_tablet'); // work fine
$is_smartphone = $requestingDevice->getCapability('is_smartphone'); // show me error
Thank you for answer me...