如何设置网站的某一个页面不使用smarty缓存
解决方案 »
- PHP调用WebSevice,<soap:address location>中的地址指向服务器本地,如何吧地址改成ip地址然后再调用
- 我有个execl表格 我想把里面的数据通过php导入mysql数据库我应该怎么办
- 为什么页面刷新后这个window.scrollTo()函数不起作用?
- 正规本科毕业用php的请签一下到
- php 有api么?? 比如我不知道include(),怎么办,不会每次都得去baidu吧??
- IBM数据库面试题,请求大牛帮忙啊
- 请问:在PHP中如何获得上个页面的变量
- dll文件的存放
- 关于函数的问题
- 一个数据分页的问题
- SSL 通配符证书有人申请过嘛?
- 如何将这段文字显示出来,在textarea中,要有换行的格式
例如
$smarty->caching = false;
class Action{
public $_tpl; function __construct(){
$this->_tpl = new smarty;
$this->_tpl->template_dir = 'view/templates';
$this->_tpl->compile_dir = 'view/templates_c';
$this->_tpl->cache_dir = 'view/cache';
$this->_tpl->config_dir = 'view/config';
$this->_tpl->cache_lifetime = '3600';
$this->_tpl->caching = true;
$this->_tpl->assign('st',$this->_tpl);
}
}
然后在实现的地方 用 $this->_tpl->caching = false;