On Wednesday, Oct 30, 2002, at 09:01 US/Pacific, Tyler Silcox wrote:
> Is there a way to find the root of the ColdFusion server?

I don't know, off the top of my head. It seems like there ought to be...

> We use Fusebox, so we designate all non-Circuit folders
> as a resource folder and prefix with a "_".  Usually we have _images,
> _customtags, _pdfs, etc.  It'd be great if I could somehow reference 
> the CF
> root with a variable, because I could then I could write a UDF to call 
> my
> cfcs as "#cfroot#.mydomin._cfcs.somecfc" but I can't quite figure out 
> how to
> do that.  It really would help for portability and reuse, any 
> suggestions

Without knowing a bit more about how your hosting setup is organized, 
it's difficult to say. If #cfroot#/mydomain is already set up as a 
custom tag path by your hosting provider, you should be able to 
reference your CFC like this:

        <cfinvoke component="_cfcs.somecfc" method="foo"/>

If #cfroot#/mydomain is your webroot already then the same code ought 
to work (since CFCs are searched for locally, then webroot, then custom 
tag paths I believe).

"Conform! Consume! Obey!"
-- Mr Snaffleburger : http://www.matazone.co.uk/theotherside.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Reply via email to