PHP code example of t4web / error-handler
1. Go to this page and download the library: Download t4web/error-handler 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/ */
t4web / error-handler example snippets
return array(
'modules' => array(
// ...
'T4web\Log',
'T4web\ErrorHandler',
),
// ...
);
public function indexAction()
{
$e = $a['i']; // this is Notice
asd(); // this is Fatal
return new ViewModel();
}
bash
$ php composer.phar update