I'm having some errors when following the exact example from the
CakePHP cookbook on Route Configuration. 
http://book.cakephp.org/view/544/Prefix-Routing

I am trying to replicate the example and have routing connect a prefix
and action name to a matched method in my controller. So, a prefix of
user and an action of create would match up to a method of
user_create.

This is the exact example from the doc yet errors with a missing
method for the action. The error is correct in the sense that I do not
have a method with the exact name of the action, but thats the point,
I have methods that are a blend of the prefix and action. Any help
would be appreciated. Assume that I have the same router connect code
as the example below. I'm using cake 1.2.6

The documentation goes as follows.

Wildcard prefix routing is available using the named element :prefix
similar to :controller and :action. You can map the url /api/user/
create to your user_create action of api controller using the
following route

Code View
Router::connect('/api/:prefix/:action', array('controller' => 'api'));

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to