the element in the layout.
You can also let the current app use another layout, one which
"inherits" the global layout. In this special layout you include the
menu element (somehow). I often work like this. With one base-layout
and a few special ones for different sections of an application.
At it's most simple such a special layout would inherit the base one
like this:
echo $this->renderLayout('<div id="container">'.$content_for_layout.'</
div>','base_layout');
As you can see this is a strictly hierarchal "russian doll" thing.
On Sep 4, 4:37 pm, Ernesto <e.fanz...@gmail.com> wrote:
> hello.
>
> i have an element that contains a simple menu
>
> i can't put this menu in the layout because the layout file is shared
> across many apps
>
> my goal is to show the menu in every view of my app.
>
> any idea?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment