> In my application.cfc, I've got a line that sets an application variable:
>
> <cfset application.siteShortDomain = "myShortDomain.com">
>
> I need that application.siteShortdomain variable available when contact.cfc
> runs.
>
> So, how would I go about this?

>From within any file that's part of that application, you can directly
reference application.siteShortDomain:

<cfoutput>#application.siteShortDomain#</cfoutput>

Any file within the same directory, or any subdirectories that don't
have their own Application.cfc or Application.cfm files, are part of
that application.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356059
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to