I agree, I've found elements to be an excellent way to reproduce content on multiple pages. In the series of applications we're working on now, the default layout displays an element that produces navigation based on data obtained from the controller (tabs across the top).
Chris Hartjes wrote: > On 6/7/07, 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? >> >> > > Well, what goes into the layout is what will appear on EVERY SINGLE > PAGE that uses that layout. Me personally, I prefer to not mess with > the layout files and instead create elements for all the content I > want to use. I feel that's a better way to organize things rather > than hard-coding things into the layout. > > Hope that helps. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
