[eluser]Unknown[/eluser]
HI,
I am refactoring an existing website to use codeigniter but want to use one of the existing Libraries to do specific soap calls. The constructor for the class takes a couple of parameters and a MYSQLI connection. I dont want to have to rewrite the existing Library as it works very well. However when I create the class from within codeigniter it never seems to allow me to connect to the database from within the external libarary.
Code extract.. This is from within one of my models..
require_once '/var/www/html/soap/class.SoapCall.php';
$SoapStuff = new SoapCall($caid,$trid,$this->db->conn_id);
$SoapStuff->doSomething();
This all creates the class correctly but when I try and access any database queries in the doSomething method of the external class I keep getting an error..
Any ideas?