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.
<cfset test= new Application() />
<cfdump var="#test.ormenabled#">
7 response s so far ↓
1 Ryan Vikander // Aug 12, 2009 at 2:35 PM
2 Ryan Vikander // Aug 12, 2009 at 2:37 PM
3 Billy Cravens // Aug 12, 2009 at 6:34 PM
<cfset test = new Application()>
<cfdump var="#test#">
4 Ben Nadel // Aug 19, 2009 at 9:14 AM
5 Ben Nadel // Aug 19, 2009 at 1:33 PM
6 Terrence Ryan // Aug 19, 2009 at 1:35 PM
7 joe banken // Sep 19, 2009 at 11:07 AM
Leave a Comment