具体怎样做呢?
将login.htm指定在p_login位置上输出,
$t->set_var("p_login",include("../../config/foothead/login.htm"));
这样子并不行。

解决方案 »

  1.   

    $temp -> set_var("login",file_get_contents("../../config/foothead/login.htm"));
      

  2.   

    <table>
    <tr>
    <td>xxxxxx</td>
    <td><?php readfile('文件名'); ?></td>
    </tr>
    </table>
      

  3.   

    $template -> set_var("login",file_get_contents("../../config/foothead/login.htm"));或者把login.htm里面的html定义成一个变量或者函数,调用替换就可以
      

  4.   

    可以用框架<iframe src="test.htm"></iframe>
    还可以直接用include_once()或include()或require