RE: Relative path when instantiating a CFC?

2008-02-13 Thread Dan G. Switzer, II
I want to use a relative path when instantiating a CFC. Can this be done when using createObject()? Can it be done at all? There is also a UDF at cflib that allows relative paths. Though it does use coldfusion.runtime.TemplateProxy. So it might not work in CF8 if access to internal java

RE: Relative path when instantiating a CFC?

2008-02-13 Thread Adrian Lynch
. Switzer, II [mailto:[EMAIL PROTECTED] Sent: 13 February 2008 12:52 To: CF-Talk Subject: RE: Relative path when instantiating a CFC? I want to use a relative path when instantiating a CFC. Can this be done when using createObject()? Can it be done at all? There is also a UDF at cflib that allows

RE: Relative path when instantiating a CFC?

2008-02-13 Thread Jonathon Stierman
) Jonathon -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 7:02 AM To: CF-Talk Subject: RE: Relative path when instantiating a CFC? Sorry for the hijack, but how are people using Application.cfc to create sub applications with the following

Re: Relative path when instantiating a CFC?

2008-02-12 Thread Dominic Watson
Lol, but it IS relative. The OP may not be aware that you can reference a cfc relative to the webroot I mean to say application root. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date

Re: Relative path when instantiating a CFC?

2008-02-12 Thread Dominic Watson
Well yes... but that's not relative. I was only talking about relative instantiation for the purpose of example. Lol, but it IS relative. The OP may not be aware that you can reference a cfc relative to the webroot and would in that case be thinking that he would need to use a path relative

Re: Relative path when instantiating a CFC?

2008-02-12 Thread Dominic Watson
My understanding is that it can only be done one way ... downward... Not entirely true. You can reference any component from the root of the application you are in (see my previous post). Dominic -- Blog it up: http://fusion.dominicwatson.co.uk

Re: Relative path when instantiating a CFC?

2008-02-12 Thread s. isaac dealey
it may be an option to refer to it from the app root. That could be a crucial piece of information for the OP. Yes. :) -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog

Re: Relative path when instantiating a CFC?

2008-02-12 Thread C S
I want to use a relative path when instantiating a CFC. Can this be done when using createObject()? Can it be done at all? There is also a UDF at cflib that allows relative paths. Though it does use coldfusion.runtime.TemplateProxy. So it might not work in CF8 if access to internal java

Re: Relative path when instantiating a CFC?

2008-02-12 Thread Sonny Savage
Thanks for the enlightening interaction! My dev env is CF7 and prod is CF6.1. The template instantiating the CFC is in a folder at the same depth as the cfc, so I was hoping for ../ type relative paths. The directory structure looks something like this: /app_name/[version]/scripts/cf/

Re: Relative path when instantiating a CFC?

2008-02-12 Thread Dominic Watson
Heh... okay, given... but I was addressing the question of relative to the template where the component is being instantiated, i.e. the default definition of relative... relative isn't relative to the application root unless you specifically include the qualifying phrase to the application

Re: Relative path when instantiating a CFC?

2008-02-12 Thread s. isaac dealey
Well yes... but that's not relative. I was only talking about relative instantiation for the purpose of example. Lol, but it IS relative. The OP may not be aware that you can reference a cfc relative to the webroot and would in that case be thinking that he would need to use a path

Re: Relative path when instantiating a CFC?

2008-02-12 Thread s. isaac dealey
My understanding is that it can only be done one way ... downward... Not entirely true. You can reference any component from the root of the application you are in (see my previous post). Well yes... but that's not relative. I was only talking about relative instantiation for the

Re: Relative path when instantiating a CFC?

2008-02-12 Thread Dominic Watson
I want to use a relative path when instantiating a CFC. Can this be done when using createObject()? Can it be done at all? It can't be done using relative notation. If the cfc is outside the root of your application, you can use a ColdFusion mapping. If it is within the root, a mapping is

Re: Relative path when instantiating a CFC?

2008-02-12 Thread s. isaac dealey
I want to use a relative path when instantiating a CFC. Can this be done when using createObject()? Can it be done at all? My understanding is that it can only be done one way ... downward... so if you've got /com/blah/thing.cfc /site/home.cfm Then you wouldn't be able to use a relative