CFCs can go in 3 places:

Webroot (and under web root)
CF mappings folders
Custom tag paths

Where you put them depends on how you want to use them. If you plan on
using Flash Remoting (or using the CFC as a web service), you need to
put it under the webroot. 

p.s. You can also build a CFC to handle remote calls that works as a
'broker' for your CFCs not under webroot. I believe SCorfield has an
article about that on macromedia.com.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Andy Ousterhout [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 30, 2003 6:17 PM
> To: CF-Talk
> Subject: RE: CFCs - property access best practices
> 
> 
> Where do I put my CFC files so that CF finds them?  Root 
> directory?  Do I need to define the location within Admin?
> 
> Andy
> 
> -----Original Message-----
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 6:02 PM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: CFCs - property access best practices
> 
> 
> > > Furthermore, you want to use the unnamed scope for
> > > your instance data
> > > (and this seems to be a popular idiom):
> > >
> > >   <!--- person.cfc --->
> > >   <cfcomponent>
> > >           <!--- create a single 'handle' for your
> > > instance data: --->
> > >           <cfset instance = structNew()>
> >
> > What does:
> >     <cfset instance = structNew()>
> >
> > do for your component?
> 
> If called from within one of the component's functions, it 
> would overwrite the structure "instance" with a new, empty 
> structure, so all of the keys within the original structure 
> would be lost. It can't be called outside of the component, 
> since it's not exposed as a public member variable.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
> 
> 
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to