> However, in our current application.cfm file we had defined
> 20 or so variables that were not scoped (eg.
> xcachepath="/cache">. In application.cfc, these variables
> evidently need to be scoped (eg.
> request.xcachepath="/cache">. This is a huge website and the
> thought of searching and replacing these variables and then
> uploading each one of thousands of files to our production
> server is daunting and could take many days of work.
You can automate the search and replace of those variables, obviously.
Alternatively, you could place the variables in the local page scope by
adding an onRequest event handler:
<cffunction name="onRequest" ...>
<cfargument name="targetPage">
<cfset xcachepath = "/cache">
...
<cfinclude template="#Arguments.targetPage#">
...
</cffunction>
Of course, if you do this, you would break any CFC URLs that involve web
services or Flash remoting. But on the other hand, you could go back and add
equivalent Request-scoped variables at your leisure, then remove this when
you're done.
> If there is no work around to the above problem, can the
> missing template handler be used in the application.cfm?
There's a missing template handler setting in the CF Administrator. Other
than that, no.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309344
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4