> ### 下載地址:
#### 使用git下載(自行安裝)下載完成后在任意目錄執行命令
```
git clone https://github.com/dinofei/tp3-.git Core
```
#### 使用:
```
將Core放入tp核心目錄 , 如下 根目錄/ThinkPHP/Core
在 根目錄/ThinkPHP\Library\Think\Think.class.php 修改:
1、注釋默認的注冊錯誤和異常方式 , 采用Core自定義異常處理
2、在系統默認配置函數文件加載完成后加入Core的配置文件
```
*在大約35行 注釋tp3默認設定*
`//?設定錯誤和異常處理
//?register\_shutdown\_function('Think\\Think::fatalError');
//?set\_error\_handler('Think\\Think::appError');
//?set\_exception\_handler('Think\\Think::appException');`
*****
*在大約120行左右 加入Core配置文件*
`//?+--------------------Core配置文件加載----------------+
if(is\_file(THINK\_PATH?.'Core/Conf/tags.php')){
Hook::import(include?THINK\_PATH?.'Core/Conf/tags.php');
????????}
if(is\_file(THINK\_PATH?.'Core/Conf/config.php')){
C(include?THINK\_PATH?.'Core/Conf/config.php');
????????}
if(is\_file(THINK\_PATH?.'Core/Helper/fun.php')){
include?THINK\_PATH?.'Core/Helper/fun.php';
????????}
//?+--------------------Core配置文件加載----------------+
//?+--------------------Core全局異常處理----------------+
$error?=?new?\\Core\\Initializer\\Error\\Error();
$error\->init();
//?+--------------------Core全局異常處理----------------+`