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...