It actually has its own subdomain...

...so is it better to

a) launch the according app inside index.php on bootstrap or

b) redirect via .htaccess to the according mobile.php (for instance).


Any opinion regarding an established best practice?


Thanks again for your help,
Christian



On Nov 11, 6:49 am, Gareth McCumskey <gmccums...@gmail.com> wrote:
> It actually is a part of symfony. The only other alternative I can think of
> (besides filters which you have mentioned) is if the mobile application is
> accessed on a different URL from the main site you can use Apache virtual
> hosts to point to the correct place.
>
>
>
> On Wed, Nov 10, 2010 at 6:56 PM, cestcri <cest...@yahoo.fr> wrote:
> > Thanks for your reply, Gareth.
>
> > I totally agree, but I also think that the index (that's the bootstrap
> > file, right?) is not part of symfony.
>
> > Anyway, if not there, where else?
>
> > Best regards,
> > Christian
>
> > On Nov 10, 1:31 pm, Gareth McCumskey <gmccums...@gmail.com> wrote:
> > > Ultimately my suggestion is try to stick to not editing the files that
> > > symfony auto-generates if you can. The simple reason is that if you start
> > > tampering with them that you can have potential problems when/if you need
> > to
> > > upgrade symfony.
>
> > > That being said, the index.php changes you are talking about do seem
> > "minor"
> > > and index.php isn't part of the symfony library that would contain the
> > > majority of changes come upgrades. Just bear in mind that index.php -may-
> > be
> > > overwritten in future and you should be ok.
>
> > > On Wed, Nov 10, 2010 at 12:35 PM, cestcri <cest...@yahoo.fr> wrote:
> > > > Hi all,
>
> > > > I recently launched a mobile app for my website, and now I wonder how
> > > > to automatically redirect visitors to the new app.
>
> > > > I found a solution with filters... but honestly that does not seem
> > > > very right to me (that would mean that the frontend app would get
> > > > initialised, and then, via the filter, a change of application/
> > > > redirect triggered). I reckon that this could happen in the bootstrap
> > > > file (index.php) in "good old php" before initialising symfony. This
> > > > way I could init() symfony straight away with the correct application,
> > > > what do you think?
>
> > > > Thanks for sharing your point of view and have a nice day,
> > > > Christian
>
> > > > --
> > > > If you want to report a vulnerability issue on symfony, please send it
> > to
> > > > security at symfony-project.com
>
> > > > You received this message because you are subscribed to the Google
> > > > Groups "symfony users" group.
> > > > To post to this group, send email to symfony-users@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> > <symfony-users%2bunsubscr...@googlegroups.com<symfony-users%252bunsubscr...@googlegroups.com>
>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/symfony-users?hl=en
>
> > > --
> > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > > twitter: @garethmcc
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to