CakePHP 1.2.0.6311-beta, Apache 2.2.6, PHP 5.2.4

I had routing working pretty well but then started adding some static
pages. These are all linked to under the "/about" path and so i placed
the files under /app/views/pages/about/. In order to get Cake to
display these i have a route like:

Router::connect('/*', array('controller' => 'pages', 'action' =>
'display'));

This is placed last in routes.php. The static pages are working fine
but now links to all of my other controllers are broken. For example,
if I browse to /members/ i see this error:

-- snip --
Missing View

Error: The view for PagesController::display() was not found.

Error: Confirm you have created the file: /var/www/vhosts/cake_elan/
app/views/pages/members.ctp

Notice: If you want to customize this error message, create app/views/
errors/missing_view.ctp
-- snip --

If i comment out that last route, /members/ works fine again but going
to the /about/ section gives me:

Error:  AboutController could not be found.

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?

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

Reply via email to