码迷,mamicode.com
首页 > 其他好文 > 详细

Errors

时间:2016-07-05 12:17:04      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:

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);

Errors

标签:

原文地址:http://www.cnblogs.com/chunguang/p/5642950.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!