gpt4 book ai didi

coldfusion - 带有 .html 文件的 cfmodule

转载 作者:行者123 更新时间:2023-12-04 01:08:00 40 4
gpt4 key购买 nike

如何让 cfmodule 处理 html 文件

Invalid template inc/nav.html provided for CFMODULE tag. 

CFMODULE tag only supports including ColdFusion templates.

The error occurred in C:/inetpub/wwwroot/ColdDoc/strategy/api/resources/templates/overview-summary.html: line 28
Called from C:/inetpub/wwwroot/ColdDoc/strategy/AbstractTemplateStrategy.cfc: line 329
Called from C:/inetpub/wwwroot/ColdDoc/strategy/api/HTMLAPIStrategy.cfc: line 150
Called from C:/inetpub/wwwroot/ColdDoc/strategy/api/HTMLAPIStrategy.cfc: line 35
Called from C:/inetpub/wwwroot/ColdDoc/ColdDoc.cfc: line 37
Called from C:/inetpub/wwwroot/ColdDoc/run.cfm: line 10

26 : <BODY BGCOLOR="white" onload="windowTitle();">
27 :
28 : <cfmodule template="inc/nav.html"
29 : page="Overview"
30 : projectTitle= "#arguments.projectTitle#"

这似乎是 Adob​​e ColdFusion 9 的行为变化

最佳答案

我没有安装 CF11,但对 <cfinclude> 进行了更改默认情况下只允许包含 .cfm 文件,但可以使用 allowedextinclude 禁用它.我不确定这是否也允许您将 .html 用于 <cfmodule> .

参见 https://helpx.adobe.com/coldfusion/developing-applications/changes-in-coldfusion.html限制

供引用:http://blog.adamcameron.me/2014/02/coldfusion-11-first-bug-bad-bug.html

关于coldfusion - 带有 .html 文件的 cfmodule,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33577253/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com