用SMARTY可以的啊,SMARTTEMPLATE没用过

解决方案 »

  1.   

    {* 绝对路径 *}
    {include file="/usr/local/include/templates/header.tpl"}{* 绝对路径 (相同的文件) *}
    {include file="file:/usr/local/include/templates/header.tpl"}{* Windows绝对路径(必须使用"file:"前缀) *}
    {include file="file:C:/www/pub/templates/header.tpl"}{* 从指定的资源"db"中得到模板("db"一般是从数据库中得到模板) *}
    {include file="db:header.tpl"}当然你也可以嵌入PHP文件
    {include_php file="/path/to/load_nav.php"}
      

  2.   

    不是的!Smartytemplate是另外一个模板类。据它自己的站点上说评测结果比Smarty快挺多。不过没有公布测试的具体过程。不过Smartytemplate好像有点像是Smarty的简化版。功能不如Smarty强大!
      

  3.   

    好像不行啊~大傢看看啦~這裏
    http://www.smartphp.net/content/app/download.php
    這裏有下~
    但不知道怎樣實現我的想法
      

  4.   

    大概看了一下,好像smarttemplate没有模板嵌套的功能吧?
    Smarty 有
    http://smarty.php.net
      

  5.   

    如果用Smartytemplate那么模板嵌套就要自己动手了。
      

  6.   

    昨天看的一篇文章(http://Www.phparch.com)
    里面说Smarty相对于Smarttemplate来说是青出于蓝而胜于蓝哦