and either way you have to map your CFC dir in CF Admin?? I guess I got stumped because in Flash you don't need to map a sub dir under wwwroot in order to invoke a CFC in that sub dir ;-)
----- Original Message -----
From: [EMAIL PROTECTED]
To: CF-Talk
Sent: Tuesday, October 21, 2003 6:55 AM
Subject: RE: Managing CFC's
yes. the Replace(application.rootdir,"/",".") code takes care of creating the full dotted path under {webroot}. This approach allows me to easily move app dirs if need be. The other approach is to keep your CFCs under the customtags folder creating a dir strucure of
com\domainname\appname then calling using the dotted notation.
Doug
-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 6:16 PM
To: CF-Talk
Subject: Re: Managing CFC's
Doug Knudsen wrote:
I have been using a more extreme approach with portability in mind. Within my app dir I have a cfc dir for the cfcs. I have a var set application.rootdir = "foo/goo/application" then I call the cfc using
<cfinvoke component="#Replace(application.rootdir,"/",".")#.assets.cfc.validate" method="gooey" returnvariable="cookies" />
What is the above example relative to? (foo/goo/application ). Is that relative to the c:\CfusionMX\wwwroot directory?
Thanks
----- Original Message -----
From: [EMAIL PROTECTED]
To: CF-Talk
Sent: Thursday, October 16, 2003 6:32 AM
Subject: RE: Managing CFC's
I have been using a more extreme approach with portability in mind. Within my app dir I have a cfc dir for the cfcs. I have a var set application.rootdir = "foo/goo/application" then I call the cfc using
<cfinvoke component="#Replace(application.rootdir,"/",".")#.assets.cfc.validate" method="gooey" returnvariable="cookies" />
Doug
-----Original Message-----
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 7:40 AM
To: CF-Talk
Subject: RE: Managing CFC's
Thanks guys that worked,
-----Original Message-----
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: 16 October 2003 12:29
To: CF-Talk
Subject: RE: Managing CFC's
If my virtual mapping is pointed to the "mySite" folder which is the root of
my default site, this works...
<cfset application.objOnlineUsers =
CreateObject("component","mySite.cfc.CurrentUsers") />
Mike
-----Original Message-----
From: Craig Dudley [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 7:22 AM
To: CF-Talk
Subject: RE: Managing CFC's
If you don't want any of your cfc's the be web services, you could put
them outside the web root and use a CF mapping.
I think In Michaels example, just exclude the 'root.' and try again.
-----Original Message-----
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: 16 October 2003 12:10
To: CF-Talk
Subject: RE: Managing CFC's
Thanks Mike,
this fits my style perfectly, although I'm confused how you are
referencing
your CFC's,
e.g. root.cfc.cfcName, I tried this but I still got the same
error,
//Could not find the ColdFusion Component
I understand how to package java classes, but where is your
scope root.cfc
referenced,
is it a mapping in an xml file or somewhere else?
-----Original Message-----
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: 16 October 2003 11:07
To: CF-Talk
Subject: RE: Managing CFC's
I am not sure if this fits your style, but this is how I usually
organize my
sites.
Root
image
stylesheet
_javascript_
udf
cfc
etc....
Now, putting all your CFCs in a central location off the root of
your site
will allow you straightforward access to them ( root.cfc.cfcName
).
HTH,
Mike
-----Original Message-----
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 5:49 AM
To: CF-Talk
Subject: Managing CFC's
Hi,
I have been trying to figure out how to have my components in
one central
location within an application so they are
available application wide.
Mmmm.. how do I do this,
Thanx,
J
_____
_____
_____
_____
_____
_____
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Managing CFC's John McCosker
- RE: Managing CFC's Tangorre, Michael
- RE: Managing CFC's John McCosker
- RE: Managing CFC's Tangorre, Michael
- RE: Managing CFC's Craig Dudley
- RE: Managing CFC's Tangorre, Michael
- RE: Managing CFC's John McCosker
- RE: Managing CFC's Douglas.Knudsen
- Re: Managing CFC's Bryan Stevenson
- RE: Managing CFC's Douglas.Knudsen
- RE: Managing CFC's Bryan Stevenson
- RE: Managing CFC's Douglas.Knudsen
- Re: Managing CFC's Bryan Stevenson