As a newbie, I am having a hard time grasping "MVC thinking" and how to
structure my application.

Lets say I would like a website with this structure:

<div wrapper>

   <div header></div>

   <div content>
         ???
   </div>

   <div footer></div>

</div>

... where "???" could be i.e. a 2 or 3 column layout with dynamic data
in each column.

Which is the best alternative?

-> To create 2 layout files - layouts/2_column.thtml and
layouts/3_column.thtml
!!  This one thus gives me a problem in which column to place the
$content_for_layout variable.

or ...

-> To stick to a single layout file and load the whole contents of the
content div from the view.
!!  Not good from a separation perspective, though?

All help appreciated!


--~--~---------~--~----~------------~-------~--~----~
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