Codeigniter - Autoload Model Always Failing Codeigniter - Autoload Model Always Failing codeigniter codeigniter

Codeigniter - Autoload Model Always Failing


It seem that you are trying to reload this model somewhere in the code. Try to search this and remove the possible duplication.

for further help see this.

The model name you are loading is the name of a resource that is already being used: base_model


Turns out I had the following code:

class Index extends CI_Controller {    public function index()    {        parent::__construct();        $this->load->view('game');    }}

But I have to put the construct inside the constructor..

class Index extends CI_Controller {    public function __construct()    {        parent::__construct();    }    public function index()    {        $this->load->view('game');    }}