Errors

Errors

In the event of an error or an exception, a custom error message is displayed:

An error occurred, The error has been reported.

This comes from the logger class in (system/Core/Logger.php) the actual error is recorded inapp/Storage/Logs/error.log. Any errors will be recorded in that file, ensuring no sensitive information it displayed on a page.

To loop through and display errors without doing it yourself call the display method of the error class:

echo Errors::display($error);
posted @ 2016-07-05 11:20  jinchunguang  阅读(203)  评论(0)    收藏  举报