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

Re: application.cfc and UDFs

Subject: Re: application.cfc and UDFs
From: Ian Skinner
Date: Fri, 03 Aug 2007 11:13:08 -0700
Newsgroups: macromedia.coldfusion.cfml_general_discussion

"just includign the code in onRequestStart."

Well, one main difference is that onRequestStart is a method, i.e. function and a UDF is a function and you can not put a function inside a function.
In other words this syntax is not allowed:

<cffunction name="onRequestStart"...>
...
<cffunction name="myUDF"...>
...
</cffunction>
...
</cffunction>


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