Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

ZendCasts.com: Setting up Zend_HTTP_UserAgent

ZendCasts.com: Setting up Zend_HTTP_UserAgent

In a recent post to the ZendCasts.com site, they’ve added a new screencast showing you how to set up Zend_HTTP_UserAgent, the component of the Zend Framework that lets you determine the software the site’s visitor is using.

With the plethora of mobile devices available on the market, it’s increasingly important to be able to identify the capabilities of those devices in order to present content in a an appropriate way. For instance, if the device is not capable of displaying images, you might want to omit them from the markup; alternately, if a device is capable of Flash, you may want to provide a Flash-based user interface. The process of identifying a device’s capabilities typically first requires knowing the HTTP User Agent, and then comparing that user agent against a database of user agent capabilities.

The screencast lasts about 30 minutes and shows you how to set up a Zend Framework 1.1 application and integrate the WURFL data to help with determine the mobile device of the user.

Source: http://www.phpdeveloper.org/news/15819

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Posted Styczeń 31st, 2011 in WEB and PHP Development.

Leave a response: