改进Template类的cache_path参数默认设置

This commit is contained in:
thinkphp
2016-07-28 21:15:18 +08:00
parent 98eb9f34b1
commit e4ed3c43f1

View File

@@ -61,7 +61,7 @@ class Template
*/
public function __construct(array $config = [])
{
$this->config['cache_path'] = RUNTIME_PATH . 'temp' . DS;
$this->config['cache_path'] = TEMP_PATH;
$this->config = array_merge($this->config, $config);
$this->config['taglib_begin'] = $this->stripPreg($this->config['taglib_begin']);
$this->config['taglib_end'] = $this->stripPreg($this->config['taglib_end']);