Absolutely, I agree with you on that note. You should always provide
alternatives to detection. :)

David: Yes it can. But like Marcin wrote, it is not a very expensive
check (and extension parsing also cost execution-time). When checking
each request you would gain the advantage that any "deep" links to the
site till choose the mobile version automatically. Extension-parsing
can be used as an alternative when the detection is not catching it
correctly. But, looking at the source for isMobile() it looks solid.
It should catch any mobile browser developed by competent developers.
(a mobile browser should probably accept wap content and that is the
"fallback" in isMobile)

/Martin



On May 8, 11:22 am, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> On Thu, May 8, 2008 at 10:32 AM, [EMAIL PROTECTED]<[EMAIL PROTECTED]> wrote:
>
> >  I am actually of the opposite opinion regarding /mobile and
> >  m.example.com.
> >  I remember seeing sites use: m.example.com, wap.example.com,
> >  mob.example.com, mobile.example.com
> >  The result for me is that I hardly ever bother trying to guess which
> >  one is used and thuss do not use the mobile verson of the site. IMHO
> >  the site should automatically adapt to the smaller screen and less
> >  capable browser. And for most normal websites contain the same content
> >  (eg news, products, contact info...) formatted for smaller screens.
>
> Oh you misunderstood me :) i would also do the automatic checking - i
> just noticed some users do use m.example.com and in this way you
> *know* they want the mobile version. So by all means the automatic way
> is the way to go - just its good to assume that automatic doesnt work
> for everyone and it would be good to give people the alternative  so
> they can force the mobile version.
>
> Btw the browser check isn't so resource intensive :) its one regexp.
>
> --
> Marcin Domanskihttp://kabturek.info
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to