Marco,

> Hi thanks for your reply, it's not a deployable object, it's simply
> a .cfc with functions i want to use.


In pretty much every FarCry application I write I have a similar  
custom CFC with non-farcry functions (I call it customFunctions.cfc).   
To work with this I set the following line in each project's config/ 
_serverSpecificVars.cfm file:

<cfset application.oCustomFunctions = createObject("component",  
"#application.custompackagepath#.custom.customFunctions").init() />

Then when I need to refer to it (to run a function), I just refer to  
the object variable like so:

<cfdump var="#application.oCustomFunctions.myMethod(var=value)#" />

Note:
* If you're not using an init() method, just remove that from the  
cfset example.
* If using a plugin, you have to specify the full path from the farcry  
mapping.

Regards,

--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to