Coldfusion mapping error

前端 未结 2 752
一整个雨季
一整个雨季 2021-01-27 09:26

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

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-27 10:16

    CFINCLUDE uses relative paths in relation to the file where the cfinclude is, so if want to include a file in another directory, 1. it has to be inside your wwwroot (or the root directory, or subdirectories) of your site, 2. you can go to other directories by doing ... hope this helps a little bit. If you want to include a file that is outside of your wwwroot, then you'll need to map that directory in Coldfusion Administrator using the same syntax above when you do include it.

提交回复
热议问题