Wednesday, April 18, 2012

Re: Using html template in cakephp

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

No comments: