[eluser]Rick Ellis[/eluser]
[quote author="DiRN" date="1224880057"][quote author="olavski" date="1224878200"]I just upgraded my app from 1.6.3 to 1.7, and I had some promlems with loading libraries...
It seems that in 1.6.3 you could do this:
$this->load->library("some_lib", "some value");
this does not seem to work in 1.7. Then you'll have to do something like:
$this->load->library("some_lib", array("some value"));
Am I correct in assuming that in v1.7 you can only pass arrays to libraries, not strings etc?[/quote]
CodeIgniter 1.7.0 added this to the library function in Loader.php:
Code:
if ( ! is_null($params) AND ! is_array($params))
{
$params = NULL;
}
I myself was wondering why this was added. I don't like to make changes to the core CI files, but I'd have to make way too many changes to my controllers to not remove these lines.[/quote]
Per the user guide, the second parameter has always expected an associative array or object, not a string, so that variables can be created. This can't be done with a string, as you seem to be using it.