News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Symfony Blog:
How to create an optimized version of your website for the iPhone in symfony 1.1
June 12, 2008 @ 14:24:10

With the recent stir caused by the new iPhone, it's only natural that developers are looking for easy ways to make their sites as compatible as possible with the mobile platform. The Symfony project has posted a guide to helping you make your apps optimized for mobile use.

symfony 1.1 introduces native support for different formats and mime-types. This means that the same model and controller can have different templates based on the requested format. The default format is still HTML but symfony supports several other formats out of the box as defined in the factories.yml file.

Using this system, it's easy to add new output formats by adding to the default layouts the framework comes equipped with. The Content-Type can be changed and layouts can be disabled as needed. This lets you make a custom definition just for use with the iPhone without a lot of hassle.

They also include an example of how to make one of these optimized layouts, including some iPhone "screenshots" of the resulting pages.

0 comments voice your opinion now!
optimize iphone website version symfony layout contenttype


blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: A New Way Of Judging Frameworks: Where are the tests?

Edin Kadribasic's Blog: PHP 4.4.5-win32 with MySQL 5.0.22

PHPBuilder.com: Managing Zend Framework Layouts

Christopher Jones' Blog: Oracle Instant Client 10.2.0.4 for Mac OS X Intel x86 is Available

SitePoint PHP Blog: Image Scraping with Symfony's DomCrawler


Community Events





Don't see your event here?
Let us know!


opinion series podcast language conference introduction release symfony library list interview laravel security composer artisanfiles tool framework version community voicesoftheelephpant

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework