在 01 的目录下面,有个 HTMLS,里面放着一个 index.htm 文件,也就是 01\HTMLS\index.html我在 01 的目录下面有个,index.php 文件,文件如下 01\index.php
<?
include_once("smarty_inc.php");
$smarty->display("./HTMLS/index.htm");
?>
问什么现实路径错误呢?应该怎么写呢?谢谢大家。

解决方案 »

  1.   

    smarty中$smarty->display("./HTMLS/index.htm");用tpl,你把你的HTML另存为TPL
      

  2.   

    01\HTMLS\index.html
    $smarty->display("./HTMLS/index.htm");是在不行就试一试
    $smarty->display("./index.html");
      

  3.   

    路径是smarty配置中配置好的,再不行你就看看配置中的路径吧,一般都是如2楼的结构
      

  4.   

    smarty下面要配置一个路径,放在那里面行了
      

  5.   

    把模板放在编译模板文件夹 $smarty->display("index.htm")