![]() |
| CFC not being found |
|
palyne
|
Hi. This is probably a code issue but reading the web isn't finding me the answer.
I found a neat cfc online I wanted to use. I have only used a cfc with CFGRID, where it has a "bind" attribute, so I didn't know how to call it. After awhile of reading I concluded I should be using "CFINVOKE" for this and finally worked out a simple call to the CFC. I have a simple form which asks for a word or phrase. It submits (form post cfform) to a tempate which sets a variable of "myidea" (string). In that template, it then calls the cfc, like so:
The CFC file is sitting IN THE SAME DIRECTORY with this little CFM template. But it's not finding it! Gah! It's driving me mad! So I made the component filename include a full path from the root of the server (C:\...) and that doesn't work either. So I made a URL-style path from root (http://...) and that doesn't work either. So I went back to just being the filename in the same directory and it still doesn't find it. The error I get is:
Maybe I shouldn't use CFINVOKE? Maybe I'm supposed to be adding some kind of BIND parameter to my actual form text field, or submit or something -- is that possible to do this kind of thing that way?? Maybe there is something special I need to do related to the cfc? I would hugely appreciate any help. Man it drives me nuts when some stupid little stuff just stops me in my tracks! Best, Palyne |
||||||||||||||||
|
|
|||||||||||||||||
|
cfsearching
|
If the cfc is in the same directory, that almost certainly rules out a path issue.
Leave off the ".cfc" file extension. ie Just use: component="cf_googleImages" |
|||||||||||||
|
|
||||||||||||||
| CFC not being found |
|
||
|


