Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Smarty:获取当前的物理文件路径_Php_Smarty_Smarty3 - Fatal编程技术网

Php Smarty:获取当前的物理文件路径

Php Smarty:获取当前的物理文件路径,php,smarty,smarty3,Php,Smarty,Smarty3,在Smarty中,是否有方法检索模板文件的当前物理路径 我正在寻找与PHP\uuuu文件\uuuuu超级变量相当的Smarty (我肯定这个问题以前一定有人问过,但我一生都找不到它。或者可能有一个很好的理由没有问它!?)看看保留变量 您可以使用获取常量,但在\uuuuu file\uuuuu 您可以使用& 是,{$smarty.current_dir}和{$smarty.template}是我一直在寻找的变量。不知道为什么在谷歌搜索中很难找到。谢谢

在Smarty中,是否有方法检索模板文件的当前物理路径

我正在寻找与PHP
\uuuu文件\uuuuu
超级变量相当的Smarty

(我肯定这个问题以前一定有人问过,但我一生都找不到它。或者可能有一个很好的理由没有问它!?)

看看保留变量

  • 您可以使用获取常量,但在
    \uuuuu file\uuuuu
  • 您可以使用&

是,
{$smarty.current_dir}
{$smarty.template}
是我一直在寻找的变量。不知道为什么在谷歌搜索中很难找到。谢谢