Smarty成员方法:setCacheDir()

2018-12-02 18:06 更新

Name

setCacheDir() — 设置缓存目录

说明

Smarty setCacheDir(string cache_dir);

Example 14.43. setCacheDir()

<?php

// 设置缓存目录
$smarty->setCacheDir('./cache');

// 方法连用
$smarty->setTemplateDir('./templates')
       ->setCompileDir('./templates_c')
       ->setCacheDir('./cache');

?>

参见 getCacheDir() 和 $cache_dir.

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号