Actually, this is painless, although in a non-MVC sort of way.
I have a look for all my sub-pages, and a variation for the home page.
The pages controller can simply do its thing as normal, using the
default layout yada-yada-yada, but the home page has a custom layout,
and it knows that by the first line of my .thtml file:
<?php $this->layout="mainPage"; ?>
This also works for setting a page title for your static pages:
<?php $this->pageTitle="About Kathryn"; ?>
NOTE: THIS IS ***NOT*** the MVC way. I don't want Gwoo, Nate or _Phpnut
himself yelling at me - it works but it's not pure. Just my 0.02
Regards!
-Toby
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---