Welcome Guest, Not a member yet? Register   Sign In
Variable that points to a library class?
#1

[eluser]JackU[/eluser]
How can i do this so it works? I wan´t the $myservice variable to point to the loaded webservice.

if ($message=="a")
{
$this->CI->load->library('webservice_a');
$myservice = $this->CI->webservice_a;
}
else
{
$this->CI->load->library('webservice_b');
$myservice = $this->CI->webservice_b;
}

$data = $myservice->loadstuff();



Messages In This Thread
Variable that points to a library class? - by El Forum - 03-08-2013, 05:39 AM
Variable that points to a library class? - by El Forum - 03-08-2013, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB