0

I want to know the exact explanation for difference between setview() and renderview()

Marco Ferrari
  • 4,914
  • 5
  • 33
  • 53
Vicky
  • 13
  • 6

1 Answers1

0

setview() overrides the view set by convention (typically views/handler/action.cfm). This renders at the end of the event.

renderview() calls the view immediately, similar to a cfinclude. The rendering can be captured in a variable for later use.

See the ColdBox wiki for Views & Layouts for more information.

Scott Coldwell
  • 868
  • 7
  • 14