in that scenario you have to deal with the limitation by making sure you can always reference the cfc relatively. This would be by having the component in the same folder as the file that calls it, or have them at the root of your site all in the same folder. But even these methods can be unreliable on a shared server, as CF has a tendency to not look for a cfc in the path order it is supposed to. i.e. it sometimes checks custom tag paths first, and will thus fail to find your CFC or will try and use someone elses if they have one with the same name.
I have found mappings to be the only reliable method. Russ -----Original Message----- From: "Aaron Roberson" <[EMAIL PROTECTED]> To: CF-Talk <[email protected]> Date: Thu, 27 Apr 2006 15:20:19 -0700 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:238994 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

