On Jan 14, 2008 3:59 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Jan 14, 2008 3:53 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > I was under the impression that putting a route last would act as a > > default and that the particular one I mentioned *must* be last or it > > will override all others. It appears to me that the opposite is in > > fact happening. Where am I going wrong here? > > Where did you get that impression, as I do not remember seeing any > documentation to that effect. Perhaps that's something that other > frameworks do, but not Cake. >
Here's one: http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller -- snip -- Route placement Just for reference, you should place the /* route LAST in your routes file or it will override all of the other routes. posted Sun, Oct 22nd 2006, 18:44 by Luke Sheridan<http://bakery.cakephp.org/users/view/demark> -- snip -- But, given that that's just a comment by someone, he may be just as confused as I am. Anyway, rather than trying to justify what I'm pretty sure I'm already wrong about (and I thought that it was pretty clear I was admitting as much), I'd really appreciate a pointer in the correct direction. Should I be using a "/*" route? Do I need to specify "/about/*" goes to pages? If so, is there some way that I can keep those views nested like this: views pages about something something deeper With the structure like this, if I try a route like "/about/*" I run into problems because Cake no longer sees the view inside the about dir. I have a lot of static pages and I'd really like to be able to keep them organised, rather than dumping everything in the /app/views/pages/ dir. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
