Skip to content

Instantly share code, notes, and snippets.

@stevereich
Created October 17, 2012 06:22
Show Gist options
  • Save stevereich/3903996 to your computer and use it in GitHub Desktop.
Save stevereich/3903996 to your computer and use it in GitHub Desktop.
Setting a CFC Object as an application variable in Coldfusion
<cfscript>
application.filters = CreateObject("component", "myCFCs.filters").init(application.settings.dsn_filters); //pass datasource to object
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment