see the preset example for the home page which sets yourdomain.com/ to display views/pages/home.ctp
eg
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
so
/about -> views/pages/about.ctp
Router::connect('/about', array('controller' => 'pages', 'action' => 'display', 'about'));
2008/11/26 Arthur Pemberton <pemboa@gmail.com>
Is the process different to have them at the root of the website?
On Wed, Nov 26, 2008 at 4:18 PM, James K <james.m.king@gmail.com> wrote:
>
> For static pages, just add them to views/pages/
>
> Name them with a .ctp extension
>
> You should be able to reach those pages by simply going to
> yourdomain.com/pages/staticpagename and it'll wrap that content in the
> default layout.
(Where I most if not all my static pages would need to be)
--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment