macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

Re: variable soring

Subject: Re: variable soring
From: "craigkaminsky"
Date: Thu, 5 Mar 2009 18:54:23 +0000 UTC
Newsgroups: macromedia.coldfusion.advanced_techniques

Hi,

 In a "standard" (i.e., no framework) CF application, I think Application.cfc 
(for CF 7+) is an ideal location. If you're using a framework (i.e., Fusebox, 
Model-Glue, ColdBox, etc.), the each framework has their own locations that are 
ideal for this task.

 I like Application.cfc because you can use the appropriate method for scoping 
your variables. For example, the onApplicationStart method is an excellent 
place to put your default application-scoped variables.

 Cheers,
 Craig


<Prev in Thread] Current Thread [Next in Thread>