php - how to specify values on $this->fetch() cakephp 2.1 -


we know $content_for_layout deprecated in cakephp 2.1 , changed $this->fetch('content');

wherever put fetch('content') contents of view layout tag viewed.

my question example have view navigation(), contents of view placed on $this->fetch('nav_view'), , view main_board() contents on $this->fetch('main_board'),

and 2 fetches outputted on same layout. possible??

somewhere in view/element/helper:

$this->start('nav_view'); // render 'nav_view' stuff here echo $this->element('...'); $this->end(); 

render same content:

// in layout $this->fetch('nav_view'); 

apparently, documented in cookbook, under using view blocks.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -