嗨,当我打开我的网站(在smarty中制作)时,我得到了这个错误,请解决我在smarty中非常新的问题
Smarty错误:无法在1083行的/var/www/vhosts/example.com/htdocs/includes/smarty/Smarty.class.php中读取资源:“pagetemplate.tpl
警告: Smarty错误:无法读取1083行/var/www/vhosts/example.com/htdocs/includes/smarty/Smarty.class.php中的资源:“pagetemplate.tpl
谢谢
发布于 2009-08-03 06:30:50
是否将模板目录设置为模板文件所在的位置?
$smarty->template_dir = ...发布于 2009-08-03 06:31:15
显然,Smarty没有找到"pagetemplate.tpl“文件。
有两个想法:
$template_dir?它是否指向正确的方向?(区分大小写也一样,顺便说一句)在此期间,您可能还希望检查$compile_dir变量。
发布于 2009-08-03 06:31:09
您可能需要检查以下几点:
的初始设置?
代码:
$smarty->template_dir = '/path/to/templates_dir';
$smarty->compile_dir = '/path/to/compile_dir';
$smarty->cache_dir = '/path/to/cache_dir';$smarty->template_dir中是否存在
pagetemplate.tplhttps://stackoverflow.com/questions/1220867
复制相似问题