Eh? You _can_ have script based methods in a CFC. You just can't assign
security to it or define return type, etc.

alpha.cfc:
<cfcomponent output="true" >

<cfscript>
function hi() { return "hello"; }
</cfscript>

</cfcomponent>

test.cfm:
<cfset o = createObject("component","alpha")>
<cfdump var="#o.hi()#">


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to