Welcome Guest, Not a member yet? Register   Sign In
Load library question
#1

[eluser]Sonolin[/eluser]
If multiple have a load->library calls (or load->database calls), would the library actually be loaded multiple times or only once? The reason I ask, is that for custom libraries, I usually load the database and libraries I need inside the custom library while these are sometimes already loaded - and I do not want any unneeded process time/odd things happening from loading things multiple times.

If the libraries are actually loaded multiple times, is there an easy way to check if the library is loaded or not? I'm assuming I can do something like this:

Code:
if (!isset($this->db)) {
$this->load->database();
}

(Not sure exactly if isset works on objects)


Messages In This Thread
Load library question - by El Forum - 04-16-2009, 06:09 PM
Load library question - by El Forum - 04-17-2009, 03:56 AM
Load library question - by El Forum - 03-26-2013, 09:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB