smarty 模板继承 问题

文件 parent.tpl

 <html>
  <head>
    <title>this is a title</title>
  </head>
  <body>
    this is a content...
  </body>
</html>

文件 child.php

 <?php
  include "init.inc.php";

  $smarty->display('extends:parent.tpl|child.tpl');
?>

为什么打开 child.php 不能正常继承,页面显示如下:

 {extends file='extends:parent.tpl|child.tpl' extends_resource=true}

你的child.tpl是怎么写的?
感觉是写法有问题

参考:

http://www.thinkphp.cn/code/2149.html

和官网的例子
https://www.smarty.net/docs/zh_CN/language.function.extends.tpl