Welcome Guest, Not a member yet? Register   Sign In
Passing parameter to a custom library constructor
#2

[eluser]pistolPete[/eluser]
Did you try this?
Code:
$config = array('setting_1' => 'value_1', 'setting_2' => 'value_2');
$this->load->library('email', $config);

The $config array should be passed to the constructor.


Messages In This Thread
Passing parameter to a custom library constructor - by El Forum - 09-27-2009, 08:34 AM
Passing parameter to a custom library constructor - by El Forum - 09-27-2009, 08:38 AM
Passing parameter to a custom library constructor - by El Forum - 09-27-2009, 08:46 AM
Passing parameter to a custom library constructor - by El Forum - 09-27-2009, 01:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB