This isn't possible in Cake. You can only have 1 content, which is the HTML rendered based on the action/controller.
If you want to display additional content, use an element include or requestAction. On Nov 15, 9:31 am, Rey Philip <[email protected]> wrote: > Hi guys I'm new here in CakePHP. How can I implement a two step view > pattern in CakePHP? Example I have a layout there are two content divs > namely content1 and content2. The code is like this > > <html> > <head> > <title>My Cake Blog Application</title> > <?=$html->css('styles');?> > </head> > > <body> > > <div id="container"> > <div id="content"> > <?=$content_for_layout;?> > </div> > </div> > > <div id="container2"> > <div id="content2"> > <?=$content_for_layout2;?> > </div> > </div> > > </body> > > </html> > > Can I do this in CakePHP? Cause in CodeIgniter we setup a layout and > then in the layout we could display many views. How can I do that here > in CakePHP? > > Thanks in advance.. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
