Warning: Smarty error: unable to read resource: "index.htm" in E:\itx\www\z\Smarty\Smarty.class.php on line 1095应该是路径问题还是权限问题呢 权限问题的话 我是在本机上测试的啊,你们有没有谁遇到类似问题呢 说出来看看呀 下面是代码
smarty_inc.php文件
<?php
include_once("Smarty/Smarty.class.php");
$smarty = new Smarty();
$smarty->config_dir = "Smarty/Config_File.class.php";
$smarty->caching = false;
$smarty->template_dir = "./templates";
$smarty->compile_dir = "./templates_c";
$smarty->cache_dir = "./smarty_cache";
$smarty->left_delimiter = "{";
$smarty->right_delimiter = "}";
?>index.php文件
<?php
include("smarty_inc.php");
$name="我要显示出来";
$smarty->assign("title",$name);
$smarty->display("index.htm");
?>我是2003系统
smarty_inc.php文件
<?php
include_once("Smarty/Smarty.class.php");
$smarty = new Smarty();
$smarty->config_dir = "Smarty/Config_File.class.php";
$smarty->caching = false;
$smarty->template_dir = "./templates";
$smarty->compile_dir = "./templates_c";
$smarty->cache_dir = "./smarty_cache";
$smarty->left_delimiter = "{";
$smarty->right_delimiter = "}";
?>index.php文件
<?php
include("smarty_inc.php");
$name="我要显示出来";
$smarty->assign("title",$name);
$smarty->display("index.htm");
?>我是2003系统
检查下,或者是index.htm拼写错误
这是index.htm的代码
<html><b><font color=red>{$title}</font></b>
</html>