First of all - if you're implementing constructor in your controller,
then you have to call parent::__construct() in it.

You're right - you don't have to use theming - switching of layout is
good enough in most cases. But why are you switching layout in
constructor instead of beforeRender() callback? And also: why not use
RequestHandlerComponent::isMobile() method? ;)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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