Layouts:

In which action are you setting the variable?  In general, it will
only be available for the view of that action.

Menus:

I would put the menu in an element.  Or if the structure of your pages
allows, put it in the layout file. (no extra data passing)

HTH,
Russell Austin

On May 7, 1:20 pm, "Greg Cerveny" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm creating a sample cakephp app just to play with.
>
> Question 1: Layouts
>
> I want to greet the user and keep that at the top of every page (ie Hi
> Greg), however none of the variables I set seem to be available to my
> layout file.  Are we able to pass more than the pagetitle into the
> layout files?
>
> Question 2: Menus
>
> I want to include a navigational menu for the users.  Is this best
> included in an element or view?
>
> I noticed the elements seem to be called from directly views, with
> arrays passed in.  Seems like a bit of extra data pushing to send
> information to a view, and then into an element, but on the other
> hand, it seems like a highly reusable component best suited for an
> element.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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