-- Juan Felipe Alvarez Saldarriaga <[email protected]> wrote (on Thursday, 22 March 2012, 09:50 AM -0500): > Wow!, great news, I think WURFL sometimes is just too much for simple > stuff, also I recommend to add something like this: > https://github.com/nebiros/yasc/blob/master/library/Yasc/Http/UserAgent.php#L114, > just a regex and some stuff to detect generic mobile devices, nothing > fancy, but faster than all the WURFL stuff.
Actually, interestingly... device detection is primarily using regex right now; wurfl/terrawurfl/deviceatlas/browscap are for reporting _features_, or capabilities, of the detected mobile device. This allows finer-grained decision-making. That said, you can simply choose not to use the features detection at all, and typehint on the device type returned (mobile, desktop, bot, etc.). -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
