I created the folder called components to stored all the cfc files there but I
don't know the syntax to call the component from the diffrent directory.
Here what I have but it didn't work
compnents/img.cfc
<cfcomponent>
<cffunction name="Image" access="public" hint="image resize"
returntype="string">
.......
</cffunction>
</cfcomponent>
.cfm file:
<cfinvoke component="/myroot/mydictory/compnents.img" method="Image">
<cfinvokeargument name="file_directory" value="#filedirectory#">
</cfinvoke>
Error: Could not find the ColdFusion Component or Interface img.
thanks
cf_dev2 - 28 Nov 2007 20:43 GMT
You're mixing your path syntax. Try using dot-notation syntax
component="absolute.path.to.YourComponentName"
..or..
component="myroot.mydictory.compnents.img"
Dan Bracuk - 29 Nov 2007 13:19 GMT
You can define a default location in your administrator.