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

[eluser]steelaz[/eluser]
Like most CI system libraries, Email library has "initialize" method. Passing array to this method will override object properties, for example:

Code:
$this->load->library('email');

$params['smtp_port'] = 25;
$this->email->initialize($params);


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