日志和缓存默认路径改变

This commit is contained in:
thinkphp
2013-04-11 15:09:58 +08:00
parent 00ee80e943
commit 00e3c8c4fe
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ return array(
'Think\Cookie' => CORE_PATH.'Cookie.php',
'Think\Controller' => CORE_PATH.'Controller.php',
'Think\View' => CORE_PATH.'View.php',
'Think\Url' => CORE_PATH.'url.php',
'Think\Url' => CORE_PATH.'Url.php',
'Think\Verify' => CORE_PATH.'Verify.php',
'Think\Debug' => CORE_PATH.'Debug.php',
'Think\Input' => CORE_PATH.'Input.php',

View File

@@ -39,7 +39,7 @@ Config::load(THINK_PATH.'convention.php');
// 初始化操作可以在应用的公共文件中处理 下面只是示例
//---------------------------------------------------
// 日志初始化
Log::init(['type'=>Config::get('log_type'),'log_path'=> Config::get('log_path')]);
Log::init(['type'=>'File','log_path'=> LOG_PATH]);
// 缓存初始化
Cache::connect(['type'=>'File','temp'=> CACHE_PATH]);