Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / November 2007



Tip: Looking for answers? Try searching our database.

components

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kt03 - 28 Nov 2007 20:16 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.