How to invoke a private method dynamically

Other topics

Remarks:

Use of <cfinvoke> or invoke() should be faster than evaluate()

CFML

<cfinvoke method="#somePrivateMethodName#">
  <cfinvokeargument name="argument1" value="one">
</cfinvoke>

CFSCRIPT (CF10+)

invoke("", somePrivateMethodName, {argument1='one'});

Contributors

Topic Id: 6110

Example Ids: 21276,21277

This site is not affiliated with any of the contributors.