报错了,怎么回事
.....
.....
2016-09-06
报错了 文件路径和名字都对
<?php
require('../smarty/Smarty.class.php');
$smarty = new Smarty();
// 配置
$smarty->left_delimiter = "{"; //左定界符
$smarty->right_delimiter = "}"; //右定界符
$smarty->template_dir="tpl"; //设置模板目录
$smarty->compile_dir = "template_c"; //模板编译生成的文件
$smarty->cache_dir = "cache"; //缓存
//以下是开启缓存的另两个配置. 因为通常不用smarty的缓存机制. 所以此项为了解.
//$smarty->caching = true ; //开启缓存
//$smarty->cache_liftime = 120 ; //缓存时间
$smarty->assign('test','文章标题');
$smarty->display('test.tpl');
举报