至少我本人从来对smarty不是很热衷。 我根据你说的这种方式配置怎么报错啊
A PHP Error was encountered
Severity: User Warning
Message: Smarty error: unable to read resource: "test.php"
Filename: libs/Smarty.class.php
Line Number: 1093
我按你这种方式加载,就报这样的错误,咋回事!咋说找不到模版呢! 白水炖土豆 发表于 2012-7-27 11:42 static/image/common/back.gif
我按你这种方式加载,就报这样的错误,咋回事!咋说找不到模版呢!
检查下 你的模板放的位置是不是和这里配置一样的
define('TPL_PATH', APPPATH.'templates'.DIRECTORY_SEPARATOR);
$this->template_dir = TPL_PATH;
页:
1
[2]