cake-php@googlegroups.com
[Top] [All Lists]

Re: Using html template in cakephp

Subject: Re: Using html template in cakephp
From: McBuck DGAF
Date: Wed, 18 Apr 2012 06:45:21 -0700 PDT
The new View Blocks allow you define general layouts, like header,
content, footer, etc., in separate files to avoid repetition (DRY).
Check out the "Extending Views" section, discussing View Blocks, in
the cookbook:

http://book.cakephp.org/2.0/en/views.html

It might be easiest for you to create one cake-style master layout/
template, with sections for the view blocks you need, then adapt your
current templates to be incorporated in the (new) cake way as view
blocks.

If that is too complicated, you might be able to adapt your templates
as elements:

http://book.cakephp.org/2.0/en/views.html#elements

-- 
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
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 
http://groups.google.com/group/cake-php

<Prev in Thread] Current Thread [Next in Thread>