Copy link to clipboard
Copied
I am trying to get a CFSELECT to populate using bind. If I use:
my bind works... somewhat.
But if I use:
I get:
"The specified CFC myCFC.file could not be found. The path to the CFC must be specified as a full path, or as a relative path from the current template, without the use of mappings."
The Coldfusion exception log says the same. myCFC is setup as a mapping to the D:/wwwroot/CFC directory in Coldfusion Administrator. I've tried putting the .cfc file in the same directory as the .cfm that calls it but I get the same error. It seems no matter where I put it and tell Coldfusion to look for it, unless I use http: I get that error.
I've tried using the cfdebug parameter on the page after enabling debugging in Administrator but it doesn't seem to do anything.
I'm using Coldfusion 9 Developer with Apache 2.2.14 and PHP 5.2.11.
Thanks for the help.
Copy link to clipboard
Copied
What you describe should work. I only have doubts about D:/wwwroot/CFC.
I successfully tested with something like this:
1) Component: c:\Coldfusion9\wwwroot\CFC\file.cfc
2) In the mappings page Administrator
Logical path: /myCFC
Directory path: c:\Coldfusion9\wwwroot\CFC
3) <CFSELECT bind="cfc:myCFC.file.getSizes({materialColor})">