PHP文件:<?php
ob_start('ob_gzhandler');



require('Smarty/libs/Smarty.class.php');

$smarty = new Smarty();


$smarty->assign("title", 'Smarty Rocks!');
$smarty->assign("name", 'Jason Gilmore');

$smarty->display('Smarty/demo/templates/welcome.tpl');
?>
welcome.tpl:<html>
<head>
<title>{$title}</title>
</head>
<body>
<p>Hi, {$name}. Welcome to the wonderful world of Smarty.</p>
</body>
</html>
运行PHP文件时却显示:Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'Smarty/demo/templates/welcome.tpl'' in D:\php5\includes\Smarty\libs\sysplugins\smarty_internal_templatebase.php:127 Stack trace: #0 D:\php5\includes\Smarty\libs\sysplugins\smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('Smarty/demo/tem...', NULL, NULL, NULL, true) #1 D:\Apache Group\Apache2\htdocs\PHPProject\index3.php(15): Smarty_Internal_TemplateBase->display('Smarty/demo/tem...') #2 {main} thrown in D:\php5\includes\Smarty\libs\sysplugins\smarty_internal_templatebase.php on line 127
我用的是zend studio 9,在网站文件夹中的“PHP Include Path”中也导入了Smart\demo\templates(这是welcome.tpl放置的位置,这个Smart在我的D:\php5\includes中)中了,为什么还显示错误?