Also, it always helps to remember that Application.cfc is in NO WAY
special or different than any other CFC you will ever write. The only
difference is that the CF application server instantiates it for each
page request and looks for certain methods to call for certain events...
But the CFC itself is not special. 

Thinking that way for me helped clear up a lot of the "magic" that I
thought was going on.

......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 6:24 PM
To: CF-Talk
Subject: Re: application.cfc and var

I assume you mean in methods. Yes.

The "var" rule also applies to UDFs as well.

Var now.
Var tomorrow.
Var always.

:)

On 8/1/07, Chad Gray <[EMAIL PROTECTED]> wrote:
> Ok now that I have learned about declaring variables in CFCs so you
don't run into race conditions and problems.  How about application.cfc?
>
> Do I need to use <cfset var foo = ""> in application.cfc?
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285311
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