The PagesController is a builtin controller that handles static pages for you.

I suggest you to put it in app/views/pages/about.ctp, then you can
access it in http:://example.com/pages/about , if you prefer you can
make a custom route in app/config/routes.php. Go ahead an read:


http://cake-php.blogspot.com/2006/09/21-things-you-must-know-about-cakephp.html

http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller

http://groups.google.es/group/cake-php/browse_thread/thread/3334878cc862f694


On Jan 18, 2008 8:48 PM, Baz <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to