Welcome Guest, Not a member yet? Register   Sign In
[solved]Turn a php class into CI library?
#5

[eluser]zimco[/eluser]
D'oh Wink Chalk it up to flatlining friday brain cells!

With your help and re-reading manual, i discovered that i have to send any parameters to a library as an array. So, by tweaking these lines:

Code:
$params = array('xml' => $xml_data);
$this->load->library('Xmltoarray',$params,'xmlObj');

It sends the xml data to the library. Of course, i then have errors like array to string conversion to work out, but thanks for all your help. Maybe monday will be better day for my brain....


Messages In This Thread
[solved]Turn a php class into CI library? - by El Forum - 01-29-2010, 03:18 PM
[solved]Turn a php class into CI library? - by El Forum - 01-29-2010, 03:28 PM
[solved]Turn a php class into CI library? - by El Forum - 01-29-2010, 04:01 PM
[solved]Turn a php class into CI library? - by El Forum - 01-29-2010, 04:22 PM
[solved]Turn a php class into CI library? - by El Forum - 01-30-2010, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB