On Tue, Jan 20, 2009 at 4:00 PM, Jon Bennett <[email protected]> wrote:

>
> Hi Leo,
>
> >  Router::connect('/pages/*', array('controller' => 'pages', 'action'
> >  => 'display'));
>
> It's the above route he's trying to avoid. He wants to have:
>
> Router::connect('/*', array('controller' => 'pages', 'action'=>
> 'display'));
>
> but you can't do that unless you create a route for all your
> controllers/actions, as this overrides them all. Hence the need to
> create a route for each page via the component.
>

Thank you, Jon. That's exactly right. I can't imagine we are the only ones
who want this sort of functionality !? I would much rather think about
implementing some sort of "default route" functionality into the Router
class. The current quick-and-dirty solution by Jesse isn't too bad, I guess.

- Gonzalo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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