A syntax reference for ColdFusion cfscript. Created this little reference after seeing Pete Freitag's cheat sheet at http://www.petefreitag.com/cheatsheets/coldfusion/cfscript/, and modeled this after his.
|
Set Variable
|
foo = "bar";
|
|
Define Array
|
arrBeer = [“Guinness”, “Harp”, “Boddingtons”]; //CF10
|
|
Define Struct
|
structBeer = {isGood:”heck yes”}; //CF10
|
|
CFAbort
|
abort;
|
|
CFDump
|
writeDump(beer);
|
|
CFInclude
|
include "template.cfm";
|
|
CFOutput
|
writeOutput("I like " & beer);
|
|
CFParam
|
param name="variables.pint" default="1"; //CF9
|
|
CFSetting
|
setting enablecfoutputonly="true" requesttimeout="180" showdebugoutput="no"; //CF10
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.