我有这个代码
{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/
但没有任何作用,有没有办法从文档根包含或扩展文件?
尝试使用完整路径
{extends“/var/www/yourfullpath/public/included_template/user/user_index_structure.tpl”}
这是linux的例子。
你不能从URL加载模板