> I am using the following line of code in my application.cfm
> 
> <cfset request.HomeDir = "http://127.0.0.1/work/ACME/may2001/website";>
> 
> Then elsewhere in the site I refer all links and images to:
> 
> <cfoutput>#request.HomeDir#</cfoutput>
> 
> Is this OK to do? I'm trying to avoid using the application 
> scope. Are there any known of issues with this method?

There's nothing wrong with that at all. I use this approach very often
myself, when creating variables to represent data that doesn't change over
the life of the application.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to