Hi guys,
I have an old app that has the following line in the application.cfm file
<cfscript>
meatDS = "goMeatDB";
nutsDS = "goNutsDB";
</cfscript>
which are referenced many times in about 15 to 22 templates.
Now, I'd like to upgrade the app to application.cfc, and from what I read about
application.cfc, it seems that I need to use "onRequestStart" function to have
the same/better result with cf8, the following seems logical, however, I can't
use "target"='this and that templates', since I have so many templates that
depends on it,
option a)
<cffunction name="onRequestStart" returnType="string">
<cfset variables.meatDS = "goMeatDB">
<cfset variables.nutsDS = "goNutsDB">
...
</cffunction>
option b)
change the global vars (variables scope) to application scope (and change all
the references), probably this option is a good one...
a better option?
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302110
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4