header.php是一个动态文件。它是要被index.php包含的。而header.php有它的模板文件(header.html)。index.php也有它自己的模板文件(index.html)。大家谁有好办法啊!

解决方案 »

  1.   

    另外建一个文件header.inc.php
    里面 require_once("header.php")
      

  2.   

    直接包含文件 就可以了 
    require_once("header.php")
    require_once("index.php")
      

  3.   

    直接包含?可以吗?我的header.php文件中,也会有$tpl->set_var("title", "我是头");或一些php代码能行吗?
      

  4.   

    你就不能 替换 成 别的吗 ?
    比如: 把 title 换成其他的?