On Sunday 20 Feb 2011 17:11:04 Jurian Sluiman wrote: > Hi all, > > I try to get WURFL working. To start, I use this configuration: > http://pastie.org/1585966 > > Next, I inserted the library php files into library/Wurfl/ and created a > data/wurfl folder. Inside, I put the wurfl-latest.zip and > web_browsers_patch.xml and created a cache folder (writable for php). > > Nevertheless, it does not work. If I get the resource I get a > Zend_Http_UserAgent object. But the browserType property is NULL. E.g.: > > $agent = $bootstrap->getResource('useragent'); // Zend_Http_UserAgent > $agent->getBrowserType // null > > I see no exceptions, how can I debug this component? I tested if exceptions > are thrown by pointing to the library "library/Wurfl-asdasd" but nothing is > thrown. What happens? > > Regards, Jurian
Please ignore the previous message. I completely missed the following line from the documentation: "Unless explicitly set, the browser type is unknown until getDevice() has been called." I think it is a good idea to adjust the manual to be more clear the device detection does not work until Zend_Http_UserAgent::getDevice() is called. It is easy to miss this single line from the large page at the manual. Regards, Jurian -- Jurian Sluiman Soflomo - http://soflomo.com
