A few of you will probably run into the problem of invoking your coldfusion components if you install ColdFusion to use your own webserver and you don't have the cfc placed in the standard folder path.
The answer to fixing this is in this article:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=buildingComponents_27.html
Specifically this:
ColdFusion uses the following rules to find the specified CFC:
* If you use a cfinvoke or cfobject tag, or the CreateObject function, to access the CFC from a CFML page, ColdFusion searches directories in the following order:
1. Local directory of the calling CFML page
2. Web root
3. Directories specified on the Custom Tag Paths page of ColdFusion Administrator
* If you specify only a component name, ColdFusion searches each of these directories, in turn, for the component.
* If you specify a qualified path, such as myApp.cfcs.myComponent, ColdFusion looks for a directory matching the first element of the path in each of these directories (in this example, myApp). If ColdFusion finds a matching directory, it looks for a file in the specified path beneath that directory, such as myApp\cfcs\myComponent.cfc, relative to each of these directories.
So to help ColdFusion find your component, you can specify your custom folder in the Custom Tags Path in your CF admin tool. Once you do that, everything will work the way it should.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home