I have a question that I am not sure if I should use cakephp to solve
or some other external trick.

For example, I want to create a website that has say information about
fruits. It will have a vitamins controller and a color controller that
you can CRUD some data about it.

A regular URL might be:
http://www.fruits.com/vitamins/index/-> this gives a list of all
vitamins in all fruit.
http://www.fruits.com/colors/add -> this would allow you to add a
color for any fruit.

I would like to make this application use multiple domains while only
using a single set of cake core files and a single set of app files
(one set of source files).

Now my question... I would like to have http://www.oranges.com and
http://www.apples.com run off the same core files / app files except
when I say http://www.oranges.com/vitamins/index it would only list
the vitamins in oranges, and if I say http://www.apples.com/colors/add
it would only add a color that would be related to an apple.

I need to know how I can determine whether the action being called is
related to an APPLE or to an ORANGE.

I tried to make this as simple as possible. Hope this makes sense.

Thank you.


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