Yeah - what he said.  ;^)


(I was halfway through the same message. when Ray's came in.)


Also you can have CFScript blocks inside a tag-based function - so even
if you do need to apply security you can usually convert even complex
functions pretty easily (leave the body as script and just convert the
arguments and return basically).


Jim Davis


-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 6:27 PM
To: CF-Talk
Subject: RE: CFCs and UDFs


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