Ok, thanks.
So I guess i need to migrate my Application.cfm to Application.cfc as
this seems to be the best practice these days.
In my application.cfm, I would declare my application, set the app
parameters, and setup any global variables I wanted. For instance,
within Application.cfm I had the following
<cfset host = "mydomain.com">
This way I could have #host# in all of my code instead of the actual
domain name (in case it changed). To my understanding, application.cfm
simply ran every time the page ran so it automatically declared the
'host' variable.
Looking at some examples, do I need to declare my application as a
component now?
Here's what I've written so far. This seems to be working, but I had
to add 'application.' to the front of the variables listed. (host,
etc).
Do I just need to figure on going back and adding 'application.' as a
prefix to those variables I declared in application.cfm?
<cfcomponent>
<cfset this.name = "detailsAT">
<cfset this.clientmanagement = "yes">
<cfset this.clientstorage = "cookie">
<cfset this.sessionmanagement = "yes">
<cfset this.setdomaincookies = "yes">
<cffunction name="onApplicationStart">
<cfset application.imageMagickFolder = "c:\program
files\ImageMagick\">
<cfset application.showSiteAlert = 1>
<cfset application.host = "details.at">
<cfset application.adminID = 1>
</cffunction>
</cfcomponent>
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en