Problem loading custom library

#11
[eluser]frost9928[/eluser]
[quote author="ranjeet_sangle" date="1271411847"]bro you are getting me all wrong ...


I was just saying that you must have loaded the same library more than once...

like
Code:
class Some_controller extends Controller
{function index()
{
$this->load->library('ups');
//some code
$this->load->library('ups');
}//index()
}//class

and there's no problem in calling like $this->load->library('ups','some_other_lib');

Sorry if my suggestion are not worth for you..!![/quote]

No I seriously thought it worked at first but I forgot I still had it autoloading which did actually fix the problem. Once I took it out of autoload array it went back to not working. I don't know what's wrong with it. I made sure I wasn't calling it twice and that it follows the format in the user guide and it just won't work unless I autoload it. Same with the CI database library on my system... absolutely will not work unless it's autoloaded. I think it's just my server trying to give me headache. No matter, it works as an autoloaded library and it doesn't do anything unless I tell it to, so it's not taking any resources to speak of.

Thank you all for your suggestions. Happy coding.


Messages In This Thread
Problem loading custom library - by El Forum - 04-13-2010, 11:36 PM
Problem loading custom library - by El Forum - 04-14-2010, 01:12 AM
Problem loading custom library - by El Forum - 04-14-2010, 01:14 AM
Problem loading custom library - by El Forum - 04-14-2010, 01:29 AM
Problem loading custom library - by El Forum - 04-14-2010, 08:28 AM
Problem loading custom library - by El Forum - 04-14-2010, 11:05 PM
Problem loading custom library - by El Forum - 04-15-2010, 07:32 AM
Problem loading custom library - by El Forum - 04-15-2010, 07:54 AM
Problem loading custom library - by El Forum - 04-15-2010, 08:22 AM
Problem loading custom library - by El Forum - 04-15-2010, 10:57 PM
Problem loading custom library - by El Forum - 04-16-2010, 11:45 AM
Problem loading custom library - by El Forum - 05-02-2010, 05:59 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.