1
Hello,
I’m trying to carry the model inside my controller as follows:
$this->load->model("gerente");
But simply everything after this code does not work, I tried to load by passing "Manager" instead of "manager" but the only difference is that this way appears "Error 500".
Here’s the Model code I’m trying to call:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once 'usuario.php';
class Gerente extends Usuario {
public function __construct() {
parent::__construct();
}
}
/* End of file gerente.php */
/* Location: ./application/models/gerente.php */
User is a class that is calling CI_MODEL
.
And I’m already carrying the database $this->load->database();
Uploaded the database to autoload?
$this->load->database(); $this->load->model("gerente");
What’s in that one required? I usually assemble a class and extend it.– Rodrigo_Brzoski
Yeah, I uploaded the database to autoload. Sorry, I forgot to comment on extend, I am used in CI_MODEL in the user.php file, and even if I call only $this->load->model('user'), no error appears, only nothing after that code works, like 'manager''
– Hugo Aguiar