【问题标题】:Unable to load template (Smarty)无法加载模板(Smarty)
【发布时间】:2019-04-03 01:55:02
【问题描述】:

我有这个代码

{extends "`$root`public\included_template\user\user_index_structure.tpl"} 

$root 在哪里 https://www.scoa.org/SCOA/ 是我的网站,但我收到一个错误提示

Fatal error: Uncaught --> Smarty: Unable to load template 'https://www.scoa.org/SCOA/public/included_template/user/user_index_structure.tpl' in .....

我试过了

.../../../SCOA/ and /SCOA/ 

但没有任何效果,有没有办法从文档根目录包含或扩展文件??

【问题讨论】:

    标签: php templates smarty3


    【解决方案1】:

    尝试使用完整路径

    {扩展“/var/www/yourfullpath/public/included_template/user/user_index_structure.tpl”}

    这是 linux 的示例。

    您无法从 URL 加载模板

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-16
      • 1970-01-01
      • 2015-11-10
      • 2021-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多