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

Re: application.cfc and UDFs

Subject: Re: application.cfc and UDFs
From: "cf_dev2"
Date: Fri, 3 Aug 2007 18:33:04 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
Another option is put the udfs into one or more utility components 
(StringUtil.cfc for string functions, DBUtil.cfc for database functions, etc) 
and store them in application scope in onApplicationStart.  

 <cfset application.StringUtil = createObject(....) />
 <cfset application.URLUtil = createObject(....) />
 ...

 Then call the utility components from your cfm pages.







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