Welcome Guest, Not a member yet? Register   Sign In
$autoload['model'] isn't loading models
#1

[eluser]Unknown[/eluser]
The only way that I can load models is through $this->load->model('modelname);

Anyone experience this issue?

Also, if I load a model, within a model, it is just ignored and not loaded.
#2

[eluser]Unknown[/eluser]
I added:
Code:
function __construct() {
        parent::__construct();
        $CI =& get_instance();
  $CI->load->model('fileOps','fileOps',true);
    }

to the constructor of the model I'm currently working in. I still get the same error message:

Quote:Unable to locate the model you have specified: fileops

when I reference it likes this:

Code:
$pdf = $CI->fileOps->uploadPDF('pdf');




Theme © iAndrew 2016 - Forum software by © MyBB