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]

Reply via email to