Welcome Guest, Not a member yet? Register   Sign In
Loading library from name
#2

Does it work if you access it directly instead of using a variable?

One thing that may cause that is when you use $this->library_name, "library_name" I believe should be lower case. You're using $mylibrary, where the variables value isn't lower case.

So it just might need something like:
$this->load->library($mylibrary);
$mylibrary = strtolower($mylibrary); //force to lower case before accessing
$this->$mylibrary->$method();

Did you try it using the actual names instead of variables to test?
Reply


Messages In This Thread
Loading library from name - by yad - 07-14-2015, 02:30 PM
RE: Loading library from name - by CroNiX - 07-14-2015, 05:27 PM
RE: Loading library from name - by yad - 07-14-2015, 11:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB