Sounds like a possible solution. I could determine the HTTP_HOST from http://www.oranges.com map it to oranges (or use a regular expression).
At this point I now have a variable='oranges' available throughout my application. Sounds like a good idea. Thanks for the input. Does anyone know another way that is better than relying just on the environment variables? perhaps a modified version of this idea? On Sep 26, 6:58 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Sep 26, 2007, at 5:51 PM, Dateve wrote: > > > > > > > > > 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 havehttp://www.oranges.comand > >http://www.apples.comrun off the same core files / app files except > > when I sayhttp://www.oranges.com/vitamins/indexit would only list > > the vitamins in oranges, and if I sayhttp://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. > > env('HTTP_HOST'); > > Or something similar, maybe? > > -- John- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
