我无法获得当前模板的绝对路径.以下是我尝试过的功能:
#ExpandPath( "./" )#<br />
#GetCurrentTemplatePath()#<br />
#GetBaseTemplatePath()#<br />
#ExpandPath( CGI.script_name )#<br />
Run Code Online (Sandbox Code Playgroud)
这是输出(所有相对路径):
/var/www/html/
/var/www/html/testPaths.cfm
/var/www/html/testPaths.cfm
/var/www/html/testPaths.cfm
Run Code Online (Sandbox Code Playgroud)
我错过了CFAdmin中的一些设置吗?