kopia lustrzana https://github.com/magicbug/Cloudlog
added nicer php error message display in development mode
rodzic
ff764f2535
commit
af0a025471
|
@ -27,6 +27,34 @@
|
|||
|
|
||||
*/
|
||||
|
||||
|
||||
switch (ENVIRONMENT)
|
||||
{
|
||||
case 'development':
|
||||
require( __DIR__ . '/../php_error.php' );
|
||||
|
||||
\php_error\reportErrors( array(
|
||||
'application_folders' => 'application',
|
||||
'ignore_folders' => 'system'
|
||||
) );
|
||||
break;
|
||||
|
||||
case 'testing':
|
||||
require( __DIR__ . '/../php_error.php' );
|
||||
|
||||
\php_error\reportErrors( array(
|
||||
'application_folders' => 'application',
|
||||
'ignore_folders' => 'system'
|
||||
) );
|
||||
break;
|
||||
|
||||
case 'production':
|
||||
default:
|
||||
exit('The application environment is not set correctly.');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Packges
|
||||
|
|
|
@ -5,7 +5,7 @@ class Welcome extends CI_Controller {
|
|||
|
||||
public function index()
|
||||
{
|
||||
|
||||
test
|
||||
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue