As Eric describes, Elements are the "best practice" method for this.

When I first started baking however, it took me a while to realise
that a layout isn't really any different to a view - it can access
variables passed to the views form the controller via the set()
method, and it can also call requestAction to get snippets of content
too.

Good luck....

Woody



On Feb 16, 12:02 pm, "Eric C Blount" <[EMAIL PROTECTED]> wrote:
> Check out Elements. They're designed for content that's repeated on every
> page, and can be rendered in the layout.
>
> HTH,
> Eric
>
> On 2/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have the layout file divided in three section.
>
> > The central is for content_for_layout();
> > right and left.
>
> > I want put for example the last news inside the right panel.
> > This panel must be visible almost always.
>
> > What must I do?
>
> > I want to put code inside, but i can only use the $session in the
> > default.thtml.
>
> > I must put all the panels in the content_for_layout()?, or I must put
> > the content for  lateral panels in other method?
>
> > Thanks.


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

Reply via email to