模板缓存默认路径改变

This commit is contained in:
thinkphp
2013-04-11 15:12:56 +08:00
parent 00e3c8c4fe
commit 6108c015b3

View File

@@ -16,12 +16,12 @@ class Controller {
public function __construct(){ public function __construct(){
$config['template_options'] = [ $config['template_options'] = [
'tpl_path' => MODULE_PATH.'view/', 'tpl_path' => MODULE_PATH.'View/',
'cache_path' => MODULE_PATH.'cache/', 'cache_path' => RUNTIME_PATH.'Cache/',
'compile_type' => 'File', 'compile_type' => 'File',
'taglib_build_in' => 'cx', 'taglib_build_in' => 'cx',
'cache_options' => [ 'cache_options' => [
'temp' => APP_PATH.'runtime/temp/', 'temp' => RUNTIME_PATH.'Temp/',
], ],
]; ];
$config['http_content_type'] = 'text/html'; $config['http_content_type'] = 'text/html';