05-17-2019, 02:19 AM
Hi folks,
We found answers to the issue we are facing on this forum, but they are three years old:
https://forum.codeigniter.com/thread-66524-page-2.html
So, we're wondering if anyone has a better solution…
We're trying to avoid both of these poor practices:
1. using a non-CodeIgniter solution for sending email, as well as
2. modifying the CodeIgniter code.
We followed https://codeigniter.com/user_guide/gener...asses.html and wrote a core class MY_Log that extends CI_Log to send emails when logging an error
However, it outputs Notice: Undefined property: MP_Log::$load
followed by Fatal error: Uncaught Error: Call to a member function library()
on the line with $this->load->library('email');
Please let us know if you have a more elegant & maintainable solution than those in the link above.
Regards,
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
We found answers to the issue we are facing on this forum, but they are three years old:
https://forum.codeigniter.com/thread-66524-page-2.html
So, we're wondering if anyone has a better solution…
We're trying to avoid both of these poor practices:
1. using a non-CodeIgniter solution for sending email, as well as
2. modifying the CodeIgniter code.
We followed https://codeigniter.com/user_guide/gener...asses.html and wrote a core class MY_Log that extends CI_Log to send emails when logging an error
However, it outputs Notice: Undefined property: MP_Log::$load
followed by Fatal error: Uncaught Error: Call to a member function library()
on the line with $this->load->library('email');
Please let us know if you have a more elegant & maintainable solution than those in the link above.
Regards,
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA