Wednesday, May 9, 2012

Re: question about view::extend

Hi,

I think here u can find the answer:
http://book.cakephp.org/2.0/en/views.html#extending-views

Calling extend() more than once in a view file will override the parent view that will be processed next:
<?php  $this->extend('/Common/view');  $this->extend('/Common/index');  

The above will result in /Common/index.ctp being rendered as the parent view to the current view.

You can nest extended views as many times as necessary. Each view can extend another view if desired. Each parent view will get the previous view's content as the content block.

 


--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate