-2

idnex.cfm を実行しようとすると、「含まれているテンプレートが見つかりませんでした」というエラーが表示されます。CF admin マッピングを使用する必要がありますが、さまざまなファイルにそのようなエラーが多数あります。では、問題を解決する簡単な方法はありますか?

Full error message:
Could not find the included template spiderBlock.cfm.
Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc.
Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible. 
4

1 に答える 1

1

エラーは、CF が検索しているパスを含め、見つからないテンプレートも通知する必要があります。そのファイルは、CF が探している場所にありますか? ないと思います。

完全なエラー メッセージを提供することから始めた場合は、これについて賢明なコメントを作成するために作業する必要があります。

他の人が示唆しているように、インクルード テンプレートでインクルード ファイルを参照できる方法がいくつかあります。それ自体の場所に対して、絶対に CF ルートから、または絶対に解決されたマッピングからです。そのため、マッピングも確認する必要がある場合があります (CFAdmin または Application.cfc で定義されます)。

于 2011-10-08T06:12:02.423 に答える