Skip to content
neoneo edited this page Apr 19, 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.

All properties on the event are available in the view as local variables (in the variables scope).

Additionally, the following variables are available:

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.

requestStrategy

This is the RequestStrategy object that is used by the context. In views, the writeUrl() method helps you manage your url format.

Clone this wiki locally