> 
> Alan Rother wrote:
> > As long as you have two Application.cfcs or Aplication.cfms using different
> > app names the vars won't be shared between the two.
> > If you are using the same codebase, but two different domain names you will
> > need to recode the app vars so that they use different values.
> 
> If one is using the same code base, it is possible to dynamically assign 
> the application name in the Application.cfc|
> cfm file based on domain names or some other factor.  The you still have 
> separate variable spaces without duplicating the code base.

That's the route I was going to suggest... Something like this should
work fairly well to separate your forums into their own applications. 

<cfcomponent displayname="Application.cfc">
  <cfset temp = cgi.server_name />
  <cfset temp = rereplace(temp,"^www\.","") />
  <cfset temp = listfirst(temp,".") />
  <cfset this.applicationname = temp />
  
  ... 
  
</cfcomponent>

-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
     ph: 817.385.0301

http://onTap.riaforge.org/blog



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326474
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to