Skip to content
neoneo edited this page Jan 29, 2012 · 8 revisions

A view is a regular .cfm template. Including <cfquery> and <cffile>, among other tags that really shouldn't be available here. It would be nice if ColdFusion would make it possible to limit functionality in .cfm files. But for now, view developers will have to have discipline.

A view template has the following variables available to do its work:

properties

This is a struct containing all event information. Everything that's put on the Event object is available through this variable.

response

This is the Response object where rendered content is gathered.
Most of the time you won't need to use this object, because content rendered in the view is automatically appended on the object. But access to it will come in handy at times.

Clone this wiki locally