Commit 62856a15 authored by Taylor Otwell's avatar Taylor Otwell

added config option for display_errors. fixed response::error to use dot syntax.

parent 659fd50a
...@@ -66,4 +66,21 @@ return array( ...@@ -66,4 +66,21 @@ return array(
Log::exception($exception); Log::exception($exception);
}, },
/*
|--------------------------------------------------------------------------
| PHP INI Display Errors Setting
|--------------------------------------------------------------------------
|
| Here you may specify the display_errors setting of the PHP.ini file.
| Typically you may keep this "Off", as Laravel will cleanly handle
| the display of all errors.
|
| However, if you encounter an infamous white screen of death scenario,
| turning this "On" may help you solve the problem by getting the
| real error message being thrown by the application.
|
*/
'display' => 'Off',
); );
\ No newline at end of file
...@@ -57,7 +57,7 @@ register_shutdown_function(function() ...@@ -57,7 +57,7 @@ register_shutdown_function(function()
*/ */
error_reporting(-1); error_reporting(-1);
ini_set('display_errors', 'Off'); ini_set('display_errors', Config::get('error.display'));
/** /**
* Even though "Magic Quotes" are deprecated in PHP 5.3, they may * Even though "Magic Quotes" are deprecated in PHP 5.3, they may
......
...@@ -157,7 +157,7 @@ class Response { ...@@ -157,7 +157,7 @@ class Response {
*/ */
public static function error($code, $data = array()) public static function error($code, $data = array())
{ {
return new static(View::make('error/'.$code, $data), $code); return new static(View::make('error.'.$code, $data), $code);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment