We all know that $content_for_layout is now deprecated in cakephp 2.1 and changed to $this->fetch(‘content’);
wherever we put that fetch(‘content’) it is where the contents of the view where the layout is tag will be viewed.
my question is for example I have a view navigation(), the contents of that view will be placed on $this->fetch(‘nav_view’), and for the view main_board() the contents will be on $this->fetch(‘main_board’),
and this two fetches will be outputted on the same layout. is it possible??
Somewhere in your view/element/helper:
Render the same as content:
Apparently, this is now documented in the cookbook, under Using view blocks.