文件 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}