推荐另一篇:
SmartTemplate引入模板文件总结
转载注明:
PHP开发资源网(
http://www.phpres.com/) :小强
SmartTemplate 1.2.1以前的版本并不支持支持include的语法,但我们也可以用来<?php include('header.html');?>包含一些复用的文件,但这样的包含并不能解析其中的语法,所以只能包含一些纯静态的文件。现在这些问题已经都解决,你可直接在模板中使用include把你需要的文件包含进来.
引用:
As of version 1.2.0 templates can be included in other templates by using the INCLUDE statement.
This permit the use of subtemplating.
The syntax is the following:<!-- INCLUDE templatename.html -->
这个挺不错的,方便很多,不过听说如果同时两个以上的
实例后面的将会无法解释,没试过不知是不是,有兴趣的可以测试下.
SmartTemplate比
Smarty好用很多,用它来生成静态
页面的我现在还不会,到时候再Send上来吧更高级的一些扩展功能我这里有,可以跟我索要.
[
本帖最后由 小强 于 2007-11-15 20:45 编辑 ]