Hi,

I've googled around, looked through the Group and read the short
manual entry for Routing, but I still don't understand the syntax.
It'd be nice if somebody could explain in detail how routing works.

$Route->connect('/:controller/:action/*', array('controller' =>
'SomeController', 'action' => 'SomeAction', 'SomeParam'));

-> www.example.com/MyController/MyAction/MyParam/My2ndParam

Which controller and action will be invoked here? MyController or
SomeController? As far as I understand it'll be SomeController and the
value "MyController" will be stored in some array under
['controller']? What is SomeParam for?

Putting my questions aside, the only thing I want to accomplish is to
"forward" the URL /Controller/Param1/Param2/Param3 to /Controller/
index/Param1/Param2/Param3. Basically reroute an otherwise missing
action to some default action and passing the parameters along
normally. How can I do that? I've tried several variations of the URL
matching string, but couldn't get it to work.

Best Regards,
Dav

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