Welcome Guest, Not a member yet? Register   Sign In
Send error log to email
#5

(This post was last modified: 03-20-2015, 05:42 AM by ivantcholakov. Edit Reason: Rever to the original for now: = -> =& )

The error (it could be a new notice or a new warning too) appears before the controller instance has been created. You can deal with this once, there is no need for email sending. For reporting the interesting errors, the email-sender is to be slightly reworked:

Code:
$ci =& get_instance();

if (is_object($ci)) {

    $ci->load->library('email');

    // ...
}
Reply


Messages In This Thread
Send error log to email - by GeorgeD - 03-19-2015, 04:06 AM
RE: Send error log to email - by Avenirer - 03-19-2015, 05:52 AM
RE: Send error log to email - by rfulcher - 03-19-2015, 03:26 PM
RE: Send error log to email - by GeorgeD - 03-20-2015, 01:06 AM
RE: Send error log to email - by ivantcholakov - 03-20-2015, 03:34 AM
RE: Send error log to email - by GeorgeD - 03-20-2015, 04:54 AM
RE: Send error log to email - by CroNiX - 03-20-2015, 09:53 AM
RE: Send error log to email - by GeorgeD - 03-20-2015, 09:58 AM
RE: Send error log to email - by jeffjones72 - 02-11-2022, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB