Saturday, March 27, 2010

Script Functions Implemented as CFCs

One of the big restrictions in using the tag was the inability to use any ColdFusion tags. That meant you could not query the database, send an email or use other powerful tags.

That changes in ColdFusion 9!

ColdFusion 9 allows the following tags to be exposed as CFCs.

ftp (cfftp)
http (cfhttp)
mail (cfmail)
pdf (cfpdf)
query (cfquery)
storedproc (cfstoredproc)

Check out this example in the documentation on how to create a query object by calling the query CFC.

No comments:

Post a Comment