
php smarty 初学者 10
Warning:Smartyerror:unabletoreadresource:"index.tpl"inD:\smarty\libs\Smarty.class.php...
Warning: Smarty error: unable to read resource: "index.tpl" in D:\smarty\libs\Smarty.class.php on line 1092
$smarty->template_dir = 'd/AppServ/www/phptest/smarty/templates';
$smarty->config_dir = 'd/AppServ/www/phptest/smarty/configs';
$smarty->cache_dir = 'd:/smarty/smarty_cache';
$smarty->compile_dir = 'd:/smarty/smarty_templates_c';
这四个路径都应该指向什么路径 展开
$smarty->template_dir = 'd/AppServ/www/phptest/smarty/templates';
$smarty->config_dir = 'd/AppServ/www/phptest/smarty/configs';
$smarty->cache_dir = 'd:/smarty/smarty_cache';
$smarty->compile_dir = 'd:/smarty/smarty_templates_c';
这四个路径都应该指向什么路径 展开
展开全部
你的错误意思是未识别的不能读取的文件 index.tpl 。要用 htm 做模板文件的扩展名 index.htm
$smarty->template_dir = 'd/AppServ/www/phptest/smarty/templates';
//模板文件存储的路径
$smarty->config_dir = 'd/AppServ/www/phptest/smarty/configs';
配置文件存储的路径
$smarty->cache_dir = 'd:/smarty/smarty_cache';
模板缓存存储的路径(一般为空)
$smarty->compile_dir = 'd:/smarty/smarty_templates_c';
//smarty 生成的模板文件存储的路径(和你的模板文件一样只是文件名不一样)
$smarty->template_dir = 'd/AppServ/www/phptest/smarty/templates';
//模板文件存储的路径
$smarty->config_dir = 'd/AppServ/www/phptest/smarty/configs';
配置文件存储的路径
$smarty->cache_dir = 'd:/smarty/smarty_cache';
模板缓存存储的路径(一般为空)
$smarty->compile_dir = 'd:/smarty/smarty_templates_c';
//smarty 生成的模板文件存储的路径(和你的模板文件一样只是文件名不一样)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询