Was ich versuche auf der Oberfläche zu tun scheint einfach, grundlegende OOP PHP, aber ich kann es einfach nicht funktionieren. Ich habe eine Controller-Klasse, die ein Modell fordert, dass Modell ein anderes Modell von mir erstreckt, aber es wirft einen Fehler sagen, es nicht finden kann:Erweiterte Modelle in Codeigniter 3
Controller (Welcome.php):
public function __construct()
{
parent::__construct();
$this->load->model('users_model');
}
public function index()
{
$this->users_model->getAll();
}
Benutzer Model (User_model.php):
class Users_model extends Base_model
{
public function __construct()
{
parent::__construct();
}
}
Basismodell (Base_model.php):
class Base_model extends CI_Model
{
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function getAll($table)
{
$query = $this->db->query('Query here');
return $query;
}
}
Diese gi Ves mir der Fehler Fatal error: Class 'base_model' not found in /ci/application/models/Users_model.php on line 3