1

I am wondering how framework one (fw1) making view() function available in views, like ColdFusion in built functions?

For example, in the below code , the view() function can be called like any ColdFusion in built functions. How fw1 making it possible?

#view(‘components/contact’)#

The function view() has been defined in /framework/one.cfc

James A Mohler
  • 11,060
  • 15
  • 46
  • 72
to-find
  • 33
  • 3

1 Answers1

1

Application.cfc extends one.cfc. Every view is executed in the context of the OnRequest method and can therefore access these methods.

From the documentation

FW/1 itself consists of a single CFC: framework.one, i.e., framework/one.cfc. Your Application.cfc will extend that

Ivan McA
  • 205
  • 2
  • 10
Bernhard Döbler
  • 1,960
  • 2
  • 25
  • 39