I will probably do the Homer Doh!! After I hear the answer..
Here is a very simple CFC called mycfc.cfc
cfcomponent
cffunction name=sayhi returntype=string
cfset hi = hi
cfreturn hi
/cffunction
/cfcomponent
Calling it using cfobject like this:
cfobject name=testCFC
It's returnVariable, not return
-Original Message-
From: J W [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 10:00 AM
To: CF-Talk
Subject: Simple CFC question...
I will probably do the Homer Doh!! After I hear the answer..
Here is a very simple CFC called mycfc.cfc
See DOH!!
Thanks!
On 11/1/06, Gaulin, Mark [EMAIL PROTECTED] wrote:
It's returnVariable, not return
-Original Message-
From: J W [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 10:00 AM
To: CF-Talk
Subject: Simple CFC question...
I will probably do the Homer
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:
: 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
=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
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
, just to make sure:
C:\inetpub\mysite\admin\store\cf-inf\cfc\products.cfc
Thanks, Mark
_
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 5:00 PM
To: CF-Talk
Subject: RE: Simple CFC question
When you use cfinvoke on an instance, you need to pass the instance
: 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
Have you tried mysite.admin.store.cf-inf.cfc.products? Maybe your
webroot is just c:\inetpub?
Ben
-Original Message-
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:17 PM
To: CF-Talk
Subject: RE: Simple CFC question
When I put the cfc in the same directory
When I put the cfc in the same directory as the cfm page
calling it, the cfc works correctly and the cfm page displays
as it should.
That is because when you used cfinvoke object=foo, it tries to create an
instance of foo, since it was in the same directory, it was able to. You
basically
Yes, I did try your suggestion here, but it didn't work.
Thanks, Mark
_
From: Ben Densmore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:21 PM
To: CF-Talk
Subject: RE: Simple CFC question
Have you tried mysite.admin.store.cf-inf.cfc.products? Maybe your
webroot is just c
:34 PM
To: CF-Talk
Subject: RE: Simple CFC question
Yes, I did try your suggestion here, but it didn't work.
Thanks, Mark
_
From: Ben Densmore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:21 PM
To: CF-Talk
Subject: RE: Simple CFC question
Have you tried mysite.admin.store.cf
: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 5:25 PM
To: CF-Talk
Subject: RE: Simple CFC question
When I put the cfc in the same directory as the cfm page
calling it, the cfc works correctly and the cfm page displays
as it should.
That is because when you used cfinvoke
Is Admin or MySite the root of your web server? If it is mysite, you need to
change your path to mysite.admin.etc.
-Raymond Camden
-Original Message-
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 3:57 PM
To: CF-Talk
Subject: RE: Simple CFC question
: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 6:06 PM
To: CF-Talk
Subject: RE: Simple CFC question
Is Admin or MySite the root of your web server? If it is mysite, you need to
change your path to mysite.admin.etc.
-Raymond Camden
-Original Message-
From: Mark
, March 30, 2004 5:45 PM
To: CF-Talk
Subject: RE: Simple CFC question
Doesn't work.
The way the domains I manage are, in IIS6
c:\inetpub\websiteNameA\admin\...
c:\inetpub\websiteNameB\admin\...
and so on.
also, I checked CFMX server admin and the mapping for / is
c:\cfusion\wwwroot\
Does this make
17 matches
Mail list logo