我正在尝试将一个转换Application.cfc
为脚本。原来有这个:
<cfcomponent displayname="Application" output="false">
<cfset this.name = "testing">
<cfset this.applicationTimeout = createTimeSpan(0,1,0,0)>
<cfset this.sessionManagement = true>
<cfset this.sessionTimeout = createTimeSpan(0,0,30,0)>
<cfsetting requesttimeout="20">
...
我不知道如何将cfsetting
标签转换为脚本。以下尝试不起作用:
setting requesttimeout="20"; // throws a "function keyword is missing in FUNCTION declaration." error.
setting( requesttimeout="20" ); // throws a "Variable SETTING is undefined." error.
看起来 Railo 可能支持它(链接),但我在ColdFusion 的文档中找不到cfsetting
标签的等价物