I have similar things that I do and I always put them into the application scope and declare them in the application.cfc file. That way, you only have to change it once. I personally don't have a problem doing <cfoutput>#application.host#</cfoutput> when I know that it changes every instance in the whole app that way instead of trying to search for each one.
On Mon, Dec 9, 2013 at 3:09 PM, Jason Allen <[email protected]> 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. > -- -- 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.
