You can also eliminate the <cfinvoke> tag and just call your
listProducts method like <cfset someObject = createObject("component",
admin.store.cf-inf.cfc.products").listProducts() />
And refer to it as someObject.
Ben
-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 3:57 PM
To: CF-Talk
Subject: RE: Simple CFC question
For some reason I still can't get it to work, error thrown says it can't
find the component - i checked to make sure it was posted and correct
spelling.
Here's what I've done:
<cfset object = createObject("component",
"admin.store.cf-inf.cfc.products")
/>
<cfinvoke component="object" method="ListProducts"
returnvariable="qProducts">
Thanks, Mark
_____
From: Ben Densmore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 3:45 PM
To: CF-Talk
Subject: RE: Simple CFC question
If C:\inetpub\mysite is your web root then you should be able to
reference it like <cfset object = createObject("component",
"admin.store.cf-inf.cfc.products") />
Ben
-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 3:31 PM
To: CF-Talk
Subject: Simple CFC question
New to CFC's. Trying to use dot notation to point to a cfc in a
directory.
Been reading docs and trying different things. The docs state it's
relative
to the webserver root.
Can't it to work. How do I write it?
The cfc is in this absolute directory path:
C:\inetpub\mysite\admin\store\cf-inf\cfc\products.cfc
Thanks, Mark
________________________________
_____
________________________________
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Simple CFC question Mark Leder
- RE: Simple CFC question Ben Densmore
- RE: Simple CFC question Mark Leder
- RE: Simple CFC question Raymond Camden
- RE: Simple CFC question Mark Leder
- RE: Simple CFC question Raymond Camden
- RE: Simple CFC question Mark Leder
- RE: Simple CFC question Raymond Camden
- RE: Simple CFC question Mark Leder
- RE: Simple CFC question RESOL... Mark Leder
- RE: Simple CFC question Ben Densmore
- RE: Simple CFC question Ben Densmore
- RE: Simple CFC question Mark Leder
- RE: Simple CFC question Ben Densmore