Yes you can, though as several other people have mentioned invoking a CFC is more expensive than calling an instance of it you have stored in a persistent scope.
~kam -----Original Message----- From: Aaron Roberson [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 4:27 PM To: CF-Talk Subject: Re: Question about Component Paths Thanks Kam! I am assuming that I can do the same thing with the <cfinvoke /> tag, right? Something like <cfinvoke component="#package#.component" returnvariable="getQuery" /> Thanks again all of you for all the help! -Aaron On 4/27/06, Figy, Kam <[EMAIL PROTECTED]> wrote: > You can make paths to CFCs dynamic, with the exception of the extends > attribute, which has to be absolute or relative. > > e.g. CreateObject("component", > "#APPLICATION.cfcroot#.path.to.cfc").init() > > I hear you about avoiding mappings. I'm all about being portable without > needing access to the cf admin, which you won't get on shared hosting > most of the time :) > > hth > Kam > > -----Original Message----- > From: Aaron Roberson [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 27, 2006 4:01 PM > To: CF-Talk > Subject: Re: Question about Component Paths > > That is what I was wondering Adrian... but I know that paths to custom > tags cannot be dynamic and assumed it was the same for CFC's. Does > anyone have any ideas about that? > > Thanks, > Aaron > > On 4/27/06, Adrian Lynch <[EMAIL PROTECTED]> wrote: > > Make the path dynamic? > > > > Adrian > > > > -----Original Message----- > > From: Aaron Roberson [mailto:[EMAIL PROTECTED] > > Sent: 27 April 2006 23:20 > > To: CF-Talk > > Subject: Re: Question about Component Paths > > > > > > Russ, > > > > I am trying to stay away from having to create mappings because my > > application may be used in another enviroment in the future where I > > don't have access to setting mappings in CF Admin. Is there another > > way, or should I take Andy's advice? > > > > Thanks for your help, > > Aaron > > > > On 4/27/06, Russ Michaels <[EMAIL PROTECTED]> wrote: > > > create a mapping that points to your components folder. > > > > > > then you can use mappingName.component > > > > > > -- > > > Snake > > > > > > -----Original Message----- > > > From: "Aaron Roberson" <[EMAIL PROTECTED]> > > > To: CF-Talk <[email protected]> > > > Date: Thu, 27 Apr 2006 14:24:21 -0700 > > > Subject: Question about Component Paths > > > > > > > The first time I uploaded my site (this is the first site I've > built > > > > using CFC's) I had to rush through all the files with invoke > > > > statements and change the paths to my components. On my > development > > > > machine it is whmedia.componentdirectory.componentname but on the > > > > server it is just componentdirectory.componentname. > > > > > > > > Any ideas or suggestions on streamlining this so that I don't have > to > > > > update multiple files every time I upload to the remote server? > > > > > > > > Thanks in advance, > > > > Aaron > > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239004 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

