Skip to content

Instantly share code, notes, and snippets.

@twelverobots
Created January 7, 2014 15:08
Show Gist options
  • Save twelverobots/8300652 to your computer and use it in GitHub Desktop.
Save twelverobots/8300652 to your computer and use it in GitHub Desktop.
<cffunction name="onCFCRequest" access="public" returntype="any" output="false">
<cfargument name="cfcname" type="string" />
<cfargument name="method" type="string" />
<cfargument name="args" type="struct" />
<cfset var result = "" />
<cftry>
<cfinvoke component="#arguments.cfcname#" method="#arguments.method#" argumentCollection="#arguments.args#" returnvariable="result" />
<cfcatch>
<cfdump var="#cfcatch#" abort="true" />
</cfcatch>
</cftry>
<cfreturn result />
</cffunction>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment