Got a question for you Ben...

Using your example, if I have abstractcomponent.cfm in the root of www_cfc and 
then i create folders to logically house other cfc's...how would I reference 
abstractcomponent.cfc from a subfolder?

www_cfc
....abstractcomponent.cfc
....cybergirl
.......girl.cfc

I tried APPLICATION.CreateCFC( "cybergirl.Girl" ).Init(...) and it found 
girl.cfc, but girl.cfc extends applicationcompnent.cfc and it is erroring out 
as it can't seem to find applicationcomponent.cfc. Can I only extend cfc's that 
are in the same directory?

Eric

>Eric,
>
>It's just a tiny component that most of my components extend. It usually
>provided a bit of behavior that I want all my components to have. For
>instance, take a look at the Abstract component in Skin Spider:
>
>http://tinyurl.com/y3xexu
>
>As you can see, it just creates a InstanceID (UUID) for each component
>that extends it. It also provides a CFDump method declaration that can
>be used by all components that extend it (via THIS.CFDUmp()). 
>
>Does that help?
>
>
>.....................
>Ben Nadel
>Certified Advanced ColdFusion MX7 Developer
>www.bennadel.com
> 
>Need ColdFusion Help?
>www.bennadel.com/ask-ben/
>
>
>-----Original Message-----
>From: Eric Roberts [mailto:[EMAIL PROTECTED] 
>Sent: Monday, November 06, 2006 11:55 AM
>To: CF-Talk
>Subject: Re: CFC pathing question
>
>Ben...
>
>What is in the AbstractBaseComponent.cfc refernced in the article that
>one of the cfc's extends?
>
>Eric
>
>
>>the web root, you can address the cfc as com.cfcdirectory.cfc...  What 
>>if we had a repository that was just above the webroot so that we have 
>>a common repository of cfc's that are accessable to all of our
>websites?
>>Also...in a clustered environment, what is the best way to handle a 
>>repostiory.  Can you then use a single directory to store the cfc's and
>
>>be able to accesss them anywhere in the cluster, or would you need a 
>>copy on each physical box?  I'm pretty excited to be working on 
>>aproject finally where I get to use CFC's.  Any help would be greatly 
>>appreciated!
>>
>>Eric

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259343
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to