ColdFusion Notes
Some notes on coldfusion.
-
Comment syntax CFML: a less than sign + exclamation mark + three dashes for comments, i.e. html comment with an extra dash
-
Comment syntax cfscript: It is different! It's pretty much java, so use //
-
Concatenate: is an amperstand, "&"
-
Escape special characters, e.g. quotes and hashes in a string by repeating it (for large amounts of text, consider cfsavecontent)
-
Record Count of a query: queryname.RecordCount
-
http://www.macromedia.com/v1/documents/cf4/Advanced_ColdFusion_Development/08_Using_CFML_Scripting/adv08_2.htm
-
http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn130 - a bunch of GOOD extensions to coldfusion - many do not require administrator actions!
-
Some good basic intoduction to CFML
http://www.depressedpress.com/Content/Development/ColdFusion/Guides/Variables/Index.cfm
-
ColdFusion + Consume Web Service - http://www.adobe.com/livedocs/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/webservices4.htm
-
Nifty example of IIF and DE functions:
-
Convert query to a List (e.g. for IN SQL): <cfset x = ValueList(getProductId.productId)>
-
Some best practices: http://wiki.coldbox.org/wiki/DevelopmentBestPractices.cfm
-
Always use "var" to force a scope on variables inside a function.
tags: cfml, cold, fusion, coldfusion, cf