Welcome Guest, Not a member yet? Register   Sign In
Loading a library in a loop
#5

[eluser]asyafrudin[/eluser]
[quote author="n0xie" date="1304516320"]Loading means including the library, then instantiating the object. There is nothing preventing you from instantiating another object

Code:
$this->load->library('Myclass');

for ($i = 0; $i < some_number; $i++)
{
    $foo = new Myclass();
}
[/quote]

Okay then. I'll give it try. Thanks for the help.


Messages In This Thread
Loading a library in a loop - by El Forum - 05-03-2011, 06:49 PM
Loading a library in a loop - by El Forum - 05-04-2011, 01:06 AM
Loading a library in a loop - by El Forum - 05-04-2011, 02:36 AM
Loading a library in a loop - by El Forum - 05-04-2011, 02:38 AM
Loading a library in a loop - by El Forum - 05-04-2011, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB