Hi,

I have religously followed the routing examples by the masters. But I
am not sure how and why its not working for me:

controllers users and admin which work fine.

#default action for users
Router::connect('/users/', array('controller' => 'users', 'action' =>
'login'));
#default action for admin
Router::connect('/admin/', array('controller' => admin', 'action' =>
'login'));

#some static pages need to be rerouted to /pages/view/param (eg:
http://website.com/about)
Router::connect('/:action/', array('controller' => 'pages', 'action'
=> 'view'));

#default action for / access
Router::connect('/', array('controller' => 'pages', 'action' =>
'index', 'home'));


However I get this error:

Missing Method in PagesController
Error: The action about is not defined in controller PagesController
Error: Create PagesController::about() in file: app\controllers
\pages_controller.php.

Expected:
if someone access pages like about, contact etc, it should be passed
to /pages/view/ with the :action as parameter

Please let me know how it can be done.

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