2 Replies Latest reply on Nov 29, 2007 5:19 AM by Dan Bracuk

    components

    kt03 Level 1
      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