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
I am bit new to CFC's...I have a qestion regarding how they are addressed. In
Advanced ColdFusion, it says that if the directory is in 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
, November 06, 2006 9:30 AM
To: CF-Talk
Subject: CFC pathing question
I am bit new to CFC's...I have a qestion regarding how they are addressed.
In Advanced ColdFusion, it says that if the directory is in the web root,
you can address the cfc as com.cfcdirectory.cfc... What if we had
The path to a CFC is just a dot version of folder notation.
Example:
webroot/foo/components/bar.cfc
woudl translate to
foo.components.bar
which would look like
cfset fooObj = createObject(component,foo.components.bar)
Makes sense?
On 11/6/06, Eric Roberts [EMAIL PROTECTED] wrote:
I am
It sounds like you'd use a mapping for this. Create a mapping in CFAdmin that
routes to your repository, then reference it in your cfc calls.
cfset APPLICATION.cartservice = CreateObject(component,
yourmappingname.cartservice).init(dsn=application.settings.dsn)
Will
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 9:30 AM
To: CF-Talk
Subject: CFC pathing question
I am bit new to CFC's...I have a qestion
Message-
From: Eric Roberts [mailto:[EMAIL PROTECTED]
Sent: Monday, November 06, 2006 9:30 AM
To: CF-Talk
Subject: CFC pathing question
I am bit new to CFC's...I have a qestion regarding how they are
addressed. In Advanced ColdFusion, it says that if the directory is in
the web root, you can
That much I understood. We are looking to create a repository that would
reside outside of the webroot so that all of the sites can access it and thus
we would have a single location to update and maintain.
Eric
The path to a CFC is just a dot version of folder notation.
Example:
What is so bad about using a mapping to reach a non-webroot folder?
1. not every one has access to the Administrator,
2. once a mapping is set, it is available to all applications, which is
not always what you want.
We would really need some more attributes in the CFAPPLICATION tag, like
-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Monday, November 06, 2006 11:57 AM
To: CF-Talk
Subject: Re: CFC pathing question
What is so bad about using a mapping to reach a non-webroot folder?
1. not every one has access to the Administrator, 2. once a mapping is
set
Also, those CFAPPLICATION tag attributes are an AWESOME suggestion!
Anyone aware of any place at Adobe's to make suggestions?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this
/
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Monday, November 06, 2006 11:57 AM
To: CF-Talk
Subject: Re: CFC pathing question
What is so bad about using a mapping to reach a non-webroot folder?
1. not every one has access to the Administrator, 2. once
: Monday, November 06, 2006 12:09 PM
To: CF-Talk
Subject: Re: CFC pathing question
Also, those CFAPPLICATION tag attributes are an AWESOME suggestion!
Anyone aware of any place at Adobe's to make suggestions?
--
___
REUSE CODE! Use custom tags;
See http
, November 06, 2006 9:30 AM
To: CF-Talk
Subject: CFC pathing question
I am bit new to CFC's...I have a qestion regarding how they are
addressed. In Advanced ColdFusion, it says that if the directory is in
the web root, you can address the cfc as com.cfcdirectory.cfc... What
if we had a repository
?
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
I know
I think http://www.adobe.com/go/wish is for suggestions and bugs.
H. Looks like they don't appreciate suggestions there.
This address redirects to
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
And there, what you get is Page Does Not Exist message :-(
--
I get the Feature Request/Bug Report Form
Maybe it was temporarily down. (?)
~Brad
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Monday, November 06, 2006 12:28 PM
To: CF-Talk
Subject: Re: CFC pathing question
I think http://www.adobe.com/go/wish
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
-
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
Maybe it was temporarily down. (?)
Then, where can I make the suggestion that they say Tempararily down
instead of File not found? ;-)
But you're right, the site is back again. I made the suggestion. Thanks.
--
___
REUSE CODE! Use custom tags;
See
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 2:07 PM
To: CF-Talk
Subject: Re: CFC pathing question
Got a question for you
21 matches
Mail list logo