Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: [Solved] Codeigniter: Load Library in a Core Class
Post: RE: Codeigniter: Load Library in a Core Class

dave friend Wrote: (11-03-2016, 06:44 PM) -- So, there's your CI email class. Hope you don't want to load any other core libraries. -- I hope not ;) Thank you for all your input.
36,220 Views
12 Replies
11-04-2016, 01:10 AM
SirGecco
    Thread: [Solved] Codeigniter: Load Library in a Core Class
Post: RE: Codeigniter: Load Library in a Core Class

I would say that in the most cases it won't make sense and it is more advisable to only send an email in case of some particular processes. In this specific project I want to receive an email in c...
36,220 Views
12 Replies
11-03-2016, 03:28 PM
SirGecco
    Thread: [Solved] Codeigniter: Load Library in a Core Class
Post: RE: Codeigniter: Load Library in a Core Class

UPDATE: I thought about the insights stated by dave. For a current workaround I extended CI_Log as follows: PHP Code: -- class MY_Log extends CI_Log {  public function __construct()  {  ...
36,220 Views
12 Replies
11-01-2016, 12:18 PM
SirGecco
    Thread: [Solved] Codeigniter: Load Library in a Core Class
Post: RE: Codeigniter: Load Library in a Core Class

InsiteFX Wrote: (11-01-2016, 07:32 AM) -- Where are you loading it from, it is stating that it can not find the Controller. -- I'm loading it directly from the MY_Log.php ----------------- dave f...
36,220 Views
12 Replies
11-01-2016, 10:49 AM
SirGecco
    Thread: [Solved] Codeigniter: Load Library in a Core Class
Post: RE: Codeigniter: Load Library in a Core Class

InsiteFX Wrote: (11-01-2016, 03:09 AM) -- PHP Code: -- //approach 2   $CI =& get_instance(); $CI->load->library('log'); -- -- Thank you for your input. PHP Code: -- $CI =& get_instance(); --...
36,220 Views
12 Replies
11-01-2016, 03:43 AM
SirGecco
    Thread: [Solved] Codeigniter: Load Library in a Core Class
Post: RE: Codeigniter: Load Library in a Core Class

pdthinh Wrote: (11-01-2016, 01:48 AM) -- SirGecco Wrote: (10-31-2016, 02:40 PM) -- The question: Is it possible to load and utilize a Library in a Core Class? Merci! -- You could use require_on...
36,220 Views
12 Replies
11-01-2016, 02:52 AM
SirGecco
  Question Thread: [Solved] Codeigniter: Load Library in a Core Class
Post: [Solved] Codeigniter: Load Library in a Core Class

Hey everbody! I want to extend the /system/core/Log.php library with a couple of functions. One function should send a mail in case of an error via the custom function sendMail() which is part of t...
36,220 Views
12 Replies
10-31-2016, 02:40 PM
SirGecco

Theme © iAndrew 2016 - Forum software by © MyBB