I think this bakery article answers your question:
http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller
I prefer to add a page-by-page route in routes.php:
Router::connect('/contact', array('controller' => 'pages', 'action' =>
'display', 'contact'));
Router::connect('/about', array('controller' => 'pages', 'action' =>
'display', 'about'));
(you could stick all the static pages in an array and loop through
them setting router:connect)
On Aug 10, 7:24 am, Geoff Ford <[EMAIL PROTECTED]> wrote:
> I tried...$Route->connect('/*', array('conroller' => 'homes', 'action'
> => 'display', 'view')); But that doesn't work.
>
> Is this a typo : sould be array('controller'
>
> Geoff
> --http://lemoncake.wordpress.com
>
> On Aug 10, 1:38 pm, 1Marc <[EMAIL PROTECTED]> wrote:
>
> > Can you setup a default controller action in the routes?
>
> > For instance...
> > /my-url-here would by default go to homes/view/my-url-here. It
> > doesn't find an associated controller so it just defaults to the Homes
> > Controller View.
>
> > But if it finds a controller it does what is normal:
> > /properties/view/my-url-here would still go to the properties view.
>
> > I tried...$Route->connect('/*', array('conroller' => 'homes', 'action'
> > => 'display', 'view')); But that doesn't work.
>
> > Can anyone help?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---