smarty 安装包 中的libs/的文件放在 /usr/local/lib/php/Smarty/中
apache 服务器目录是 /home/lshg/desktop/testphp/
这是index.php文件中的一段
执行后提示找不到 unable to read resource: "index.tpl" in /usr/local/lib/php/Smarty/Smarty.class.php on line 1095$smarty->template_dir = ' /home/lshg/desktop/testphp/smarty/templates/';
$smarty->compile_dir = ' /home/lshg/desktop/testphp/smarty/templates_c/';
$smarty->cache_dir = ' /home/lshg/desktop/testphp/smarty/cache/';
$smarty->config_dir = ' /home/lshg/desktop/testphp/smarty/configs/';
$smarty->assign('name', 'Ned');
$smarty->display('index.tpl');
请问怎么办?
已经上网搜过 没有找到解决办法