added nicer php error message display in development mode

pull/109/merge
Peter Goodhall 2012-12-12 22:12:13 +00:00
rodzic ff764f2535
commit af0a025471
3 zmienionych plików z 4440 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -5,7 +5,7 @@ class Welcome extends CI_Controller {
public function index()
{
test
}
}

File diff suppressed because one or more lines are too long