[eluser]tomjnsn[/eluser]
I should clarify: I'm referring to the upload library (in 1.7.0). If I try and load it, as the example shows, in a regular method of the class it nests it somewhere below other libraries. If I put it in the constructor it loads just fine. Here's a sample Controller I created:
class Test extends Controller {
function Test() {
parent::Controller();
// doing this here the upload library is available via $this->upload
// $this->load->library('upload');
}
function index() {
// Doing this here the upload library is nested under other libraries
$this->load->library('upload');
die(print_r($this));
}
}
I'm using PHP 5.2.6, with Apache 2.2.9 on Windows XP if any of that makes any difference.
Thanks,
Tom