You can view the code at http://cakeforge.org/snippet/detail.php?type=snippet&id=67
Cake does not have built in support for the traditional "Theme" idea which I believe is what you are trying to accomplish, but if you keep your views restricted to the basics, styled only by CSS, and keep the actual look and feel in the stylesheets and your default layout, then when a design change needs to happen you only have 2-3 files to alter (app/views/layouts/default.thtml and the corresponding stylesheets).
On 6/9/06, bigdog <[EMAIL PROTECTED]> wrote:
This might be a good start: http://manual.cakephp.org/chapter/8 ;
[header][--><?php echo $content_for_layout ?>][footer]
Each controller stores a template. So that is where you would be
updating "$content_for_layout" for your templates
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
- Re: How to with layout/templates? John Zimmerman [gmail]
