On 9/29/06, Neves <[EMAIL PROTECTED]> wrote:

My site has many static pages, that I don“t want to create
model/controller for each one.
How can I map to those pages and where there should be
(view/pages/etc)?

I want to keep using cakePHP friendly urls and put those static pages
inside my default template.

The pages_controller is what serves static pages.

Your pages go in /app/views/pages as *.thtml files.

URL's would be http://example.com/pages/page_name  or http://example.com/pages/section/page_name if you have a folder.

The content of each static page will be displayed where the content_for_layout variable is located in the default template.  /app/views/layouts/default.thtml

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

Reply via email to