If the left handed content is static, you can add the content in the
layout through <? echo $this->renderElement('the-element'), ?>. This
element must be in app/views/elements/the-element.thtml as a simple
html.
If the left handed content is dinamically generated, you need to
insert it through <? echo $this->requestAction('/mycontrollers/
myfunction'); ?>. In mycontrollers controller you must have:
function myfunction() {
$this->layout = 'blank';
// Here you controll and send the content to app/views/
mycontrollers/myfunction.thtml
}
Note the $this->layout='blank'; It just use an empty layout so you
don't paste the headers and other content of the original layout in
the left handed element. The last thing you must do is create
blank.thtml in app/views/layouts/. The content is just:
<? echo $content_for_layout; ?>
Hope this helps, sorry for my poor english!
On 7 jun, 10:36, mrtopher <[EMAIL PROTECTED]> wrote:
> I'm very new to cake and just read the documentation on layouts. My
> particular app has two main content areas... one for the views on the
> right and another for section navigation on the left. After reading
> the documentation it sounds like I only have access to one content
> area within the layout, is this true? Can I make additional
> placeholders in the layout?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---