Well, it's sort of irrelevant that it's outside the web root (or is it). The
important thing is that the CFC exists ABOVE the calling page. How can you
create a path using dot notation to a file that's above your calling page? 

-----Original Message-----
From: Nando [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 1:35 PM
To: CF-Talk
Subject: Re: Referencing a CFC above the calling file.

The dot.delimited.path.from.the.webroot should work, but i think you're
indicating that it's outside of the webroot? If so, you can move it under
the webroot, or find a way to create a mapping to it.

On 2/5/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> I know how to instantiate a CFC if it's in the same (or sub) folder as 
> the calling file:
>
> myCFC = CreateObject("component", "includes.myCFC");
>
> But how would you reference a CFC living in a directory ABOVE the 
> calling file. Assuming the paths below:
>
> utilities [dir]
>     common.cfc  [file]
> www [dir]
>     testing.cfm [file]
>     includes [dir]
>         myCFC.cfc  [file]
>
> How would testing.cfm instantiate common.cfc? I'll bet that you can 
> use a mapping, but in this case, a mapping isn't an option due to 
> hosting company restrictions.
>
> Anyone?
>
> ____________________________________
>
> Andy Matthews
> Senior Coldfusion Developer
>
> Office:  877.707.5467 x747
> Direct:  615.627.9747
> Fax:  615.467.6249
> [EMAIL PROTECTED]
> www.dealerskins.com <http://www.dealerskins.com/>
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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

Reply via email to