... I changed all of my methods to be called via mapping (ie, "components.componentName().methodName(args)") and most of them work! However, I've got a few that aren't being found, even with using the mapping...
Just use the obvious, standard way,
<cfset obj = createobject("component", "dotted.path.to.componentName")>
<cfset result = obj.methodName(args)>
It leaves no room for ambiguity or error, and makes your code easier to understand and to maintain.
I understand that you want to call your private method inside of the CFC.
I do this direktly by using the method name without any prefix:
This works well for me.
Thanks for replying. I'm not sure if we're allowed to use CreateObject on the production servers. And I'm trying to do this via CFSCRIPT as it appears a little cleaner than having all those CFSET tags. Normally, I don't mind the HTML-style tags, but sometimes I just want less clutter.