Welcome Guest, Not a member yet? Register   Sign In
passing data to a custom library
#1

[eluser]skaterdav85[/eluser]
I have some pre-built classes, and so i added them to my libraries folder under application. I noticed that you have to pass in an array when you load the library if you want to pass any data to the contstructor. What if the constructor accepts only Strings, not arrays? How would I load the library with my string?

This is my code in my controller that doesnt work:

Code:
$url = "http://tinygeocoder.com/create-api.php?q=Perris,CA";
$this->load->library('RemoteConnector', $url);


Messages In This Thread
passing data to a custom library - by El Forum - 09-21-2010, 06:30 PM
passing data to a custom library - by El Forum - 09-21-2010, 07:52 PM
passing data to a custom library - by El Forum - 09-21-2010, 08:25 PM
passing data to a custom library - by El Forum - 09-22-2010, 08:19 AM
passing data to a custom library - by El Forum - 10-08-2010, 07:20 PM
passing data to a custom library - by El Forum - 08-05-2011, 03:06 PM
passing data to a custom library - by El Forum - 08-05-2011, 05:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB