cfm
files and the model or business layers will be all done in script syntax in cfc
files. (MVC comes later).cfm
) or components (classes -cfc
). You will write one or more instructions in a file (.cfm,.cfc
) then run the file through a CFML engine or Command Line Interpreter like CommandBox.cfm
- ColdFusion markup file, tag syntax is the defaultcfc
- ColdFusion Component file (Class or Object), script syntax is the default. cfset
, cfoutput
, and cfdump
. cfset
is used to create a variable and assign it a value. Also cfset
is used to call methods. cfoutput
displays a variable's value. cfdump
is used to display the contents of simple and complex variables, objects, components, user-defined functions, and other elements.;
. However, the Lucee Server engine and ColdFusion 2018 and above treat semi-colons as optional, while Adobe ColdFusion 2016 or below does not. We would recommend you always use them to remain compatible between engines. Also note the CommandBox REPL does NOT require semi-colons.<
and ending >
enclosures and create context by using the {
and }
mustaches.