Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to CFCs, question about CFINVOKE

Status
Not open for further replies.

KevinFSI

Programmer
Nov 17, 2000
582
US
I finally got the company to let me upgrade to CFMX (since we've had it sitting on my desk forever.)

Anyway, I have a CFC that is in my "components" directory which is inside my "application" directory. This particular CFC is pretty universal in its functionality which means I'd like to be able to call it from any application. So, what I want to do is place this cfc in the root or inetpub directory. So far, the only documentation I can find tells me to use dot notation in the CFINVOKE tag to drill down to my CFC directory from within my application. What I can't find is a way to drill UP to a CFC that is not stored within my app directory but instead is stored in another top level directory.

I hope this makes sense.

Kevin
slanek@ssd.fsi.com

"Life is what happens to you while you're busy making other plans."
- John Lennon
 
Please disregard. I have to set up a mapping. It just hit me that I could do this, and sure enough when I went to the mappings page in CFAdmin, it mentions mappings for CFCs right there. Sorry to waste your time.

Kevin
slanek@ssd.fsi.com

"Life is what happens to you while you're busy making other plans."
- John Lennon
 
not a problem. once you set up a mapping your apps will use the mapping in the cfadministrator to find the cfc. That will make it useable by every app very easily.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
What if you don't have access to CFAdmin?? Which is usually the case when you host your site somewhere else.

/jonas
 
Do you have someone who DOES have access that you can contact? If not, you can always put the CFC in the directory with your app, then you'll be able to access it.

Kevin
slanek@ssd.fsi.com

"Life is what happens to you while you're busy making other plans."
- John Lennon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top