sae thinkphp5 mkdir 错误解决方法

 

config.php配置文件 中直接添加

'log'=>[
	'type'=> '\think\sae\Log',
]

'template' => [
	'type'	=>	'Think',
	'compile_type'	=> '\think\sae\Template',

]
'cache'=>[
	'type'  =>  '\think\sae\Cache',
]

2. 修改thinkphp\library\think\Template.php文件

 

// 初始化模板编译存储器

蒋原来的

// $type = $this->config['compile_type'] ? $this->config['compile_type'] : 'File';

改成

$type = Config::get('template.compile_type')? Config::get('template.compile_type'):$this->config['compile_type'];

 即可

转载于:https://my.oschina.net/madeitcwang/blog/3027126

你可能感兴趣的:(php)