I know its a bit late to be answering but I generally have a config.cfm 
file where I set all of my application specific variables. I set all of my 
cfparam defaults for url and session variables there. I also use physical 
addresses for file uploads that are out of the webroot (for security of the 
files) and deliver them through cfheader and cfcontent. Those variables 
differ from application to application, server to server, and from OS to 
OS; so the config file is my one stop shop for variables like that. I 
include the config first thing in my framework so it runs right after the 
application.cfc.


On Monday, December 9, 2013 5:09:20 PM UTC-5, Jason Allen wrote:
>
> Throughout my app, I have tons of hardcoded references to the root domain. 
> aka 'company.com'
>
> I want to be able to declare it dynamically within my application file OR 
> find another way around having to have 1,000 instances where that domain is 
> hardcoded in. 
>
> Thoughts? If i declare it as a variable within my application.cfc, I have 
> to code in <cfoutput> around every instance. 
>
> Ex. 
>
> <title>company.com</title>  vs. <title><cfoutput>#host#</cfoutput></title>
>
>

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to