I am trying to dynamically set a codeigniter constructor, but am having difficulty. I have in my controller:
$arguments=array('login'=>'***','pass'=>'***'); ;
$this->load->library('mailer', $arguments);
$phpmail = new Mailer;
$phpmail->sendmail('***', 'bob', 'hi', 'there');
My constructors first line looks like:
public function __construct($login,$pass)
but I'm getting the following:
Message: Missing argument 1 for Mailer::__construct(),
Any ideas what I am doing wrong?
Thanks in advance,
Bill