因为用smarty,并且重新定义缓存文件夹和模板文件夹,所以在入口文件中写了这个:
$tpl->template_dir="./tpl/";
$tpl->compile_dir="./com/";
但是smarty.class.php中,这两个属性是私有的,如
private $template_dir = array('./templates/');
/**
* compile directory
*
* @var string
*/
private $compile_dir = './templates_c/';
按说即然是私有属性,在入口文件中再重新赋值是不允许的,可是离奇的事发生了,却偏偏允许,难道这里还有别的机关不成
------解决思路----------------------
看看类里面是否使用了 魔术方法__set之类的呢.