CakePHP and Layout - secret of data passing through
CakePHP, Development, Frameworks, PHP October 10th, 2007
In my current project I need to deal with Layout more than adding some header, static menu and footer in it. I need to have dynamic menu loaded from the database plus additional blocks which will contain some data related to the main content. The similar case is YouTube.com, where in every movie you have related movies from the right depending from the tags related to the main movie. I think you get the idea.
Well, searching in the CakePHP Manual, CakePHP Google Group or Bakery doesn’t saticfy mu understanding how to solve the case. Apart from $anything_for_layout: Making HTML from the View available to the layout article I didnt find anything on this topic. And this one sounds like a hack rather than a complex solution.
Read the rest of this entry »

