문제

ColdFusion 버전 9에는 index.cfm에 다음과 같습니다.

<cfdump var="#Application#">

그러나 내가 돌아 오는 유일한 것은 ApplicationName을 가진 구조물입니다. RootPath, Mappings 또는 CustomTagPath와 같은 다른 변수는 없습니다.

Application.cfc에서 내가 가진 내용은 다음과 같습니다.

<cfcomponent output="false">
<cfset this.name = left("App_#hash(getCurrentTemplatePath())#",64)>
<cfset this.applicationTimeout = createTimeSpan(0,8,0,0)>
<cfset this.sessionManagement=True>
<cfset this.loginStorage = "session">
<cfset this.clientManagement = False>
<cfset this.setClientCookies = True>
<cfset this.setDomainCookies = False>
<cfset this.scriptProtect = "all">
<cfset this.rootPath = getDirectoryFromPath(getCurrentTemplatePath())>
<cfset this.mappings = this.rootPath>
<cfset this.customTagPaths = "#this.rootPath#Components">
도움이 되었습니까?

해결책

해당 설정이 응용 프로그램 범위에 있지 않기 때문입니다. 당신은 혼란스러운 응용 프로그램입니다 설정 대 신청 값. 응용 프로그램 범위에서 사용할 수 있으려면 OnApplicationStart ()에서 간단히 설정할 수 있습니다. 물론이 범위를 통해 볼 수 있으므로 값을 복사하십시오.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top