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, ?method=myFunction&argument=argument
call it through flash remoting
call it through flash remoting variants such as Flex
call it through an event gateway

That's 9... are there any more?

-nathan strutz
http://www.dopefly.com/


On 2/28/06, Aaron Rouse <[EMAIL PROTECTED]> wrote:
>
> 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
> just find it easier to read.
>
> On 2/28/06, James Holmes <[EMAIL PROTECTED]> wrote:
> >
> > I use the third option  - a cfset tag.
> >
> > <cfset someVariable = myObject.DoSomething()>
> >
> > On 2/28/06, Mark Flewellen <[EMAIL PROTECTED]> wrote:
> > > 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?
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233662
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to