Introspecting Application.cfc

I’ve gotten this question a bunch of times. How do you get information about what’s enabled in your application scope? How do I know if ORM is enabled, or what the datasource is?

Pretty easy – Instantiate the Application scope, and then get that information from the This scope.

8 thoughts on “Introspecting Application.cfc

  1. Nice! I never thought of actually creating a new instance of the CFC. Very cool idea! I always used some hacky approach like dumping out the secret properties of the application scope. Your way is much better!

Leave a Reply

Your email address will not be published. Required fields are marked *