Load Library in a Core Class 2019 |
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 |
Messages In This Thread |
Load Library in a Core Class 2019 - by 41As - 05-17-2019, 02:19 AM
RE: Load Library in a Core Class 2019 - by InsiteFX - 05-17-2019, 03:48 AM
RE: Load Library in a Core Class 2019 - by 41As - 05-17-2019, 07:41 AM
|