Welcome Guest, Not a member yet? Register   Sign In
loading library
#2

[eluser]mddd[/eluser]
You could just check if the variable exists:
Code:
if (!isset($this->some_lib)) $this->load->library('some_lib');
As a side note: it is not a problem to load the same library twice. CI will just ignore the second $this->load command.


Messages In This Thread
loading library - by El Forum - 08-18-2010, 04:54 AM
loading library - by El Forum - 08-18-2010, 05:02 AM
loading library - by El Forum - 09-22-2010, 04:13 AM
loading library - by El Forum - 09-22-2010, 04:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB