【发布时间】:2011-08-28 14:43:35
【问题描述】:
我有默认模板文件 (main.tpl),我想在 <body> 标签之间包含子页面。
所以当用户点击链接 News 上的示例时,它会显示 news.php ($smarty->display("news.tpl");) 结合 main.tpl
--> main.tpl 的第一部分 + news.tpl + main.tpl 的第二部分。
News.tpl 将包含一些文本和 php 代码,仅此而已。例如。
Hello, <php echo $username ?>. Some random text.
【问题讨论】: