I just checked the docs for createObject, and it tells me nothing.
using this
<cfset varPass =
createObject("component","CFC.varpass").varpass(url,"URL","displaymode")>
does this interpret to mean this:
<cfset varPass = createObject("component","path.name.cfc").method(arg,arg,arg)>
?
Do the arguments have to come in the brackets in the same order as the
are listed in the CFC? Or do they programagically appear in the
correct place?
On Apr 5, 2005 5:53 PM, Nando <[EMAIL PROTECTED]> wrote:
> :) i started answering before you asked ...
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Duncan
> Sent: Tuesday, April 05, 2005 9:36 AM
> To: [email protected]
> Subject: Re: [CFCDev] calling a cfc
>
> it does work, yes. The only way I could find. Thanks for the info here
> I will give it a crack. One other thing, I have seen people talk about
> instatiating the cfc in the application scope. Whats the benefit of
> that and how is it done?
>
> On Apr 5, 2005 5:19 PM, Jared Rypka-Hauer - CMG, LLC <[EMAIL PROTECTED]>
> wrote:
> > Duncan...
> >
> > Does that work?? I don't think it should... maybe cfinvoke is slightly
> > different than cfobject and createObject... but, you can use any of
> several
> > other methods to handle this:
> >
> > <cfset varPass =
> > createObject("component","CFC.varpass").varpass(url,"URL","displaymode")>
> >
> > You should also be able to use:
> >
> > <cfinvoke component="cfc.varpass" method="varpass"
> returnvariable="varpass"
> > stAttribs="#url#" style="URL" exceptions="displaymode" />
> >
> > One word of advice, though... you may want to consider not using the same
> > name for the CFC, the method, and the return variable. It'll work fine,
> but
> > it can get really confusing!
> >
> > Just a thought...
> >
> > Laterz,
> > J
> >
> >
> > On Apr 5, 2005 2:08 AM, Duncan <[EMAIL PROTECTED]> wrote:
> > > I am new o CFC's and trying out the processes with them, and I have
> > > the following code calling this one cfc, it does it on every request
> > > and its one that I have put outside the webroot, with a maping to the
> > > dir so we can share it between the applications on the server.
> > >
> > > <cfinvoke component="/CFC/varpass" method="varpass"
> > > returnvariable="varpass" stAttribs="#url#" style="URL"
> > > exceptions="displaymode" />
> > >
> > > the /cfc/varpass bit doesnt rub well with me, can I use some this.that
> > > notation to call it? How do I set that up?
> > > Also because it gets used on every single request is there a better
> > > way to set it up?
> > >
> > > Thanks
> > > --
> > > Duncan I Loxton
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > --
> > Continuum Media Group LLC
> > Burnsville, MN 55337
> > http://www.web-relevant.com
> > http://www.web-relevant.com/blogs/cfobjective
> > ----------------------------------------------------------
> > You are subscribed to cfcdev. To unsubscribe, send an email to
> > [email protected] with the words 'unsubscribe cfcdev' as the subject of
> the
> > email.
> >
> > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> > (www.cfxhosting.com).
> >
> > An archive of the CFCDev list is available at
> > www.mail-archive.com/[email protected]
>
> --
> Duncan I Loxton
> www.mcgrath.com.au
> www.sixfive.co.uk
> [EMAIL PROTECTED]
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
--
Duncan I Loxton
www.mcgrath.com.au
www.sixfive.co.uk
[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]