PHP code example of houdunwang / error

1. Go to this page and download the library: Download houdunwang/error library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

houdunwang / error example snippets


Config::set('log.dir', 'storage/log');
//开启时直接显示错误信息
Config::set('app.debug', true);
$config = [
    //Notice类型错误显示
    'show_notice' => true,
    //错误提示页面
    'bug'         => 'resource/bug.php',
];
Config::set('error', $config);