I spent some time figuring this out about a month ago.  I may be
missing a step but here's the quick answer.

1) In your app_controller set
  var $view = 'Theme';

2) Somewhere in your beforeFilter or beforeRender you have to set the
theme you want to use.
$this->theme = 'whatever';

3) Cake will look for a folder called "themed" in your view path.
There you need a sub folder in themed for each theme with the same
name as used in step 2 ('whatever' in this case). app/views/themed/
whatever/

4) Cake will look in that path first for any views or layouts you
use.  If they don't exist it defaults back to the normal views and
layouts (I think).  So to use a themed layout create app/views/themed/
whatever/layouts/default.ctp.

Theming works pretty well, although my directions may not be complete.

-Matt
www.pseudocoder.com




On Dec 28, 6:31 am, "C.Hochstrasser" <[EMAIL PROTECTED]> wrote:
> I'm working on a project which should give the site administrator the
> ability to use themes and I noticed a class named themeWeb, but I
> couldn't find any documentation about it, or how to use it.
>
> Could somebody help me out?
>
> with best regards
> Christoph Hochstrasser
--~--~---------~--~----~------------~-------~--~----~
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