As stated above you can set the theme in the layout File. If there is
another page you also want to use then: $this->render('pageName') would
allow you to call another page.

Kind regards,
Matthew McNaughton

-Sent from Android device
On May 27, 2011 6:16 AM, "m16u31" <[email protected]> wrote:
> hi, im sorry buy my english isnt good,
> I have a problem I created an aplication, and it has a mobile and
> standar version.
>
> in footer's page , i have two links .. mobile version, standar version
>
> and the user can switch any time the version.
>
>
> in my app_controller i have this ,. to detect if device is mobile
>
> if ($this->RequestHandler->isMobile()) {
> // if device is mobile, change layout to mobile
> $this->layout = 'mobile';
> }
>
>
> the question is ...
>
> how can I switch the themes?whith the footer's links??
>
> thank you
>
> --
> Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
at http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to