On May 15, 12:54 pm, Signified <[email protected]> wrote:
> Trying to set up a mobile theme in CakePHP 2.0.0-dev, but it isn't
> working as it did in 1.3. Have there been any changes to the themes
> implementation in 2.0?
>
> Structure as follows:
>
> app/views/themed/mobile/layouts/default.ctp
> app/views/themed/mobile/pages/home.ctp
>
> Then in app/app_controller.php:
>
> public function beforeRender()
> {
>     if ($this->RequestHandler->isMobile()) {
>         $this->view = 'Theme';
>         $this->theme = 'mobile';
>     }
>
> }
>
> Hit the home page... But no mobile site... Just the normal site. No
> errors, nothing in debug or error logs. No errors, no exceptions.
> Nothing. As if themes have been deprecated or something.
>
> Any ideas anyone?

If you're going to use an unreleased, undocumented version of
something - check the code (of the Theme view class in your case)

AD

-- 
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