Skip to main content
Inspiring
September 7, 2006
Question

Is UDF can pass a component?

  • September 7, 2006
  • 1 reply
  • 182 views
I have AppMgr.cfc and MyPlan.cfc
When I see codes written this way (see below), does it mean a component called "MyPlan" is created and then passed to another component?
<cfscript>
AppMgr.initApp();
AppMgr.setMyRecord( createObject"component","#application.rootdir#.RecFolder.MyPlan") );
.
.
.
</script>
This topic has been closed for replies.

1 reply

Inspiring
September 7, 2006
Yup. A component is a valid variable type and can be passed into or out
of other components, user defined functions and custom tags with ease.