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
. 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
)
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
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
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
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
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
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
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/
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
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
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
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
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
14 matches
Mail list logo