Thanks guys! I had thought all variables passed into view templates came in as an associative array of the parent controller name. When I accessed the variable directly it worked. My mistake. :)
I'm going to play with your element ideas and see how it works for me. Thanks again, -greg 2007/5/7, soytuny <[EMAIL PROTECTED]>: > > 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 [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 -~----------~----~----~----~------~----~------~--~---
