Hi,

We have several mobile apps that use the url structure 
/api/[search|facets]/type:[bar|foo|ra|sim].  
In a previous version this was simple to route  /:controller/:action/*  

This got to be unwieldy because of the amount of processing it took to 
retrieve information for the different types.

In our migration to cake 2.x, our new structure is bar extends api, foo 
extends api, ra extends api, etc.

This has worked really well, letting us extract the functions for foo into 
it's own controller, etc.

The problem is routing this.  I can't figure out how to route the 
controllers based on the named param 'type'.

Is there any way to extract the named param 'type', and pass that value 
into :controller using standard cake routing, or will I have to go to a 
custom route extension, similar to the :slugs example?


Thanks for looking at this!
Lee

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to