You "can" do anything, but elements seems to be the best bet... u would have the model: /models/about.php
controller: /controllers/controller_about.php view: /views/about/index.ctp then the elements: /views/elements/ header.ctp footer.ctp menu.ctp On Jan 18, 2008 3:07 PM, 1010011010 <[EMAIL PROTECTED]> wrote: > > I'm very new to CakePHP and used to to use procedural code. I think I > get the idea about MVC and the structure of CakePHP but I have a few > questions. > > Say I have a page on my site that is a page with no content from a > database (ie. about.php). In the old days the page would render the > content plus include the header, menu, and footer inside an includes > folder. > > For example, the directory structure would look like this: > about.php > includes/header.php > includes/footer.php > includes/menu.php > > After doing some research it looks like the header, menu and footer > would be Elements inside a Layout. Is that correct? and... would the > "about" page just be a view with static content? What would the > directory structure look like? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
