I have to make an application where multiple domains (or subdomains) should be using the same code base. Previously, the way I did this was create a new model glue “application” instance for each unique domain.
Then in the init() method of controller.cfc, we would 1) Get the unique siteID out of the database based on the domain name 2) Instantiate all of the CFCs to the variables scope by passing in the unique siteID Looking back, this seems kind of wasteful, and it seems like it would be easier to somehow save the siteID to session or something and pass then into EVERY function call instead of creating duplicate cfcs. Anyone have any recommendations for how to go about this best? Will this make programming it way more complex? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" 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/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
