初次接触模板,不知道哪有错误,请指点一下

初次接触模板,不知道哪有错误,请指点一下

index.php
<?php
    include_once("..\Smarty\comm\libs\Smarty.class.php");
    $smarty=new Smarty();
    $smarty->template_dir="..\Smarty\templates";
    $smarty->compile_dir="..\Smarty\templates_c";
    $smarty->left_delimiter="<{";
    $smarty->right_delimiter="}>";
    $smarty->assign("name","李晓军");
   $smarty->display("index.tpl");
?>

index.tpl
{include file="header.tpl"}
大家好,我叫{$name},欢迎大家阅读我的smarty学习材料。
{include file="foot.tpl'}

header.tpl
<html>
<head>
<title>大师兄smarty教程</title>
</head>
<body>

foot.tpl
<hr>
<center>CopyRight(C) by 大师兄 2004年8月 Email:[email protected]</center>
<hr>
</body>
</html>

出错Smarty error: unable to read resource: "index.tpl" in E:\php\AppServ\comm\libs\Smarty.class.php on line 1095
不知道哪里错了,各位帮忙解决一下,谢了
只有拼搏,努力和进取,自己的未来才会更美好

{include file="header.tpl"}
大家好,我叫{$name},欢迎大家阅读我的smarty学习材料。
{include file="foot.tpl'}

{都改为<{
}都改为>}

还有定义的最好另外写一个继承类

left_delimiter="<{";
  这里定义了分界符号

是的

我也有这样的问题