Welcome Guest, Not a member yet? Register   Sign In
$this->load->library and __construct
#1

[eluser]matt2012[/eluser]
im using a class that has a __construct

Code:
public function __construct($api_key, $secret)

the problem is the construct is being loaded and complaining about
missing variables before ive called the class
heres the code,

Code:
$api_key = "fgugodsogfu";
$secret = "dfgdfgdsgfdfc";
$this->load->library('something');
$something = new Something($api_key, $secret);

so the __construct class is being called even if I cross out the last line.


Messages In This Thread
$this->load->library and __construct - by El Forum - 09-08-2008, 09:23 AM
$this->load->library and __construct - by El Forum - 09-08-2008, 09:46 AM
$this->load->library and __construct - by El Forum - 09-08-2008, 09:50 AM
$this->load->library and __construct - by El Forum - 09-08-2008, 09:53 AM
$this->load->library and __construct - by El Forum - 09-08-2008, 10:36 AM
$this->load->library and __construct - by El Forum - 09-08-2008, 10:59 AM
$this->load->library and __construct - by El Forum - 09-08-2008, 01:49 PM
$this->load->library and __construct - by El Forum - 03-02-2009, 09:08 PM
$this->load->library and __construct - by El Forum - 03-02-2009, 11:03 PM
$this->load->library and __construct - by El Forum - 03-03-2009, 03:21 AM
$this->load->library and __construct - by El Forum - 03-03-2009, 04:32 AM
$this->load->library and __construct - by El Forum - 03-03-2009, 05:03 AM
$this->load->library and __construct - by El Forum - 03-03-2009, 06:24 AM
$this->load->library and __construct - by El Forum - 03-03-2009, 06:39 AM
$this->load->library and __construct - by El Forum - 03-03-2009, 06:51 AM
$this->load->library and __construct - by El Forum - 03-03-2009, 07:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB