[eluser]Jelmer[/eluser]
Good point Wanwizard, I forgot about that function. Though I'm not sure about how you put it.
For that first instance you need to put it like this:
Code:
$instance = load_class('myclass', TRUE);
When set to FALSE it only returns TRUE after load.
I prefer the autoloader solution, but if you want to do it this way I'd use it like this:
Code:
load_class('myclass', FALSE);
$instance = new Myclass();