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

[eluser]skaterdav85[/eluser]
thanks for the help. i was hesitant to modify the library just because i know it isn't good practice to edit a pre-tested class. however this seemed like the easiest solution so i just modified the constructor with one line to accept that particular index in the array passed, like this:

Code:
before
$this->_url = $url;

my changes:
$this->_url = $url['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