What is the best method or easiest method for calling component methods.
At present i use the cfinvoke way of doing things, but i see a lot of people
use cfscript instead to do it, is there some reason for this? less code
involved maybe?
Mark
I use cfscript because it's much more similar in syntax and look to other
languages, javascript, java, c, c# . This way I don't go crazy when I switch
between languages. Back in CF 5 days it used to be faster to do it this way,
but not now.
Bob
I use either a CFSCRIPT or CFSET, it just depends on where I am using it.
Most of the time I do the CFSCRIPT and with bother I use the CreateObject()
function. I do it more out of habbit, I think the CF5 days(which we still
live on some servers here) got me stuck on using CFSCRIPT a lot. Plus I
Does anyone else find it somewhat ridiculous the number of ways you can call
a CFC?
cfscript obj = createobject(...);/cfscript
cfset obj = createobject(...)
cfinvoke ...
cfobject ...
using any of the above methods, you can call it like a web service
call it directly from the url,
Does anyone else find it somewhat ridiculous the number of
ways you can call a CFC?
Not at all!
cfscript obj = createobject(...);/cfscript cfset obj =
createobject(...) cfinvoke ... cfobject ... using any of
the above methods, you can call it like a web service call it
directly from
Subject: RE: cfscript or cfinvoke
Does anyone else find it somewhat ridiculous the number of
ways you can call a CFC?
Not at all!
cfscript obj = createobject(...);/cfscript cfset obj =
createobject(...) cfinvoke ... cfobject ... using any of
the above methods, you can call it like a web
6 matches
Mail list logo