[symfony-users] Re: mobile site strategy

2010-09-02 Thread Dennis
Rather than go the plugin route, why not use either a '.mobi' tld, or '.movi' subdomain, and symlinnk any directories that you need between the two projects? On Sep 1, 4:57 am, Benoit Montuelle wrote: > I've done it by adding specific layout, templates and stylesheet to the > existing app. > >

[symfony-users] Re: mobile site strategy

2010-09-07 Thread klemens_u
Hi, it's basically really just a question of view. Here's an old blog post about creating an iphone view: http://www.symfony-project.org/blog/2008/06/09/how-to-create-an-optimized-version-of-your-website-for-the-iphone-in-symfony-1-1 Most of it is still valid and it works. But there is one serio

[symfony-users] Re: mobile site strategy

2010-09-07 Thread klemens_u
Hi, it's basically really just a question of view. Here's an old blog post about creating an iphone view: http://www.symfony-project.org/blog/2008/06/09/how-to-create-an-optimized-version-of-your-website-for-the-iphone-in-symfony-1-1 Most of it is still valid and it works. But there is one serio

[symfony-users] Re: mobile site strategy

2010-09-07 Thread Kevin
Thanks, this stuff is great. Never thought of that. On Sep 7, 3:49 am, klemens_u wrote: > Hi, > > it's basically really just a question of view. > > Here's an old blog post about creating an iphone > view:http://www.symfony-project.org/blog/2008/06/09/how-to-create-an-optim... > Most of it is s

[symfony-users] Re: mobile site strategy

2010-09-08 Thread Kevin
How do you get it to work for layouts? On Sep 7, 8:40 am, Kevin wrote: > Thanks, this stuff is great.  Never thought of that. > > On Sep 7, 3:49 am, klemens_u wrote: > > > Hi, > > > it's basically really just a question of view. > > > Here's an old blog post about creating an iphone > > view:ht

[symfony-users] Re: mobile site strategy

2010-09-08 Thread Kevin
I found also you can add .sf_format to a layout: layout.mobile.php to automatically use that layout when sf_format is not html (this was mentioned above my klemens_u) On Sep 8, 1:48 pm, Gustavo Adrian wrote: > You could create a custom layout for mobile sites. Then, in the action: > > $this->set

[symfony-users] Re: mobile site strategy

2010-09-13 Thread popofr13
How do you manage the case which symfony actions are different between mobile and not mobile website ? Case Study : Home page In the not mobile website, we could display 3 modules (each connected to some data in database) In the mobile, we could only display 1 module Note: in this case, only the

Re: [symfony-users] Re: mobile site strategy

2010-09-05 Thread Alexandre Salomé
It's just a question of view. You should create dedicated routes with a sf_format "mini" 2010/9/2 Dennis > Rather than go the plugin route, why not use either a '.mobi' tld, or > '.movi' subdomain, and symlinnk any directories that you need between > the two projects? > > > > On Sep 1, 4:57 am,

Re: [symfony-users] Re: mobile site strategy

2010-09-08 Thread Gustavo Adrian
You could create a custom layout for mobile sites. Then, in the action: $this->setLayout( 'myMobileLayout' ); You could create a custom "base" action that extends from sfActions, where you check for the "sf_format" value for the request in the "preExecute" method. Then, based on that value, set t

Re: [symfony-users] Re: mobile site strategy

2010-09-08 Thread Gustavo Adrian
That's a nice tip that I didn't know. Thanks for mention it! On Wed, Sep 8, 2010 at 2:57 PM, Kevin wrote: > I found also you can add .sf_format to a layout: layout.mobile.php to > automatically use that layout when sf_format is not html > > (this was mentioned above my klemens_u) > > On Sep 8, 1