-
Notifications
You must be signed in to change notification settings - Fork 3
Views
neoneo edited this page Jan 26, 2012
·
8 revisions
A view is a regular .cfm template, exactly like in old times. 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:
This is a struct containing all event information. Everything that's put on the Event object is available through this variable.
This is the Response object where rendered content is gathered.
Content rendered in the view is automatically appended on the object, but access to it will come in handy at times.