[eluser]Ki[/eluser]
I have placed my config items in /config/email.php:
Code:
$config['protocol'] = 'sendmail';
$config['mailtype'] = 'html';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'utf-8';
I have created MY_Email in /application/libraries:
Code:
class MY_Email extends CI_Email {
function My_Email()
{
parent::CI_Email();
}
}
Within my controller I set:
Code:
$this->load->library('email');
And within Email.php (core CI email library), on line 87 I have added (for testing):
Code:
print_r($config);
if (count($config) > 0)
The above outputs an empty array. If I delete MY_Email.php, then the array outpus the configuration items I have stored.
Shouldn't CI load config items regardless if the library is extended?
Ki