Quantcast

How can I provide multiple routes to the same app?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

How can I provide multiple routes to the same app?

Synchro-2

I have a video CMS app that effectively needs two user interfaces - a
regular scaffolding-style user interface, and a simple interface that's
used by video player apps. The problem is that the way the video app
one needs to work interferes with cake's usual routing.

For example, I want to be able to view standard editing pages like:

http://www.myapp.com/videos/edit/23

in the usual controller/action style.

At the same time I need to be able to get into the same cake app via a
URL like:

http://www.myapp.com/accountname/someclip.mov

or possibly with a different hostname for the alternative route:

http://video.myapp.com/accountname/someclip.mov

How can I set up the routing so that it doesn't try to call an action
called 'someclip.mov' in a non-existent 'accountname' controller?

Can I set up these two routes at the same time in a way that they won't
interfere with each other? Would the alternative hostname help, and can
cake respond on two subdomains at once in the same app?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How can I provide multiple routes to the same app?

Synchro-2

I found a fair answer to this in the comments on this article:
http://bakery.cakephp.org/articles/view/56


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Loading...