I have been trying to load some models for this website I am building. However, for an unknown reason, it will bring the following error :
An Error Was Encountered
Unable to locate the model you have specified: logon_model
Now , I have done my research. The problem would be that IC processes file names in lowercase. However, both my file and the file calling is in lower case, as shown here :
echo "VALIDATING";
// Validation passed. Off we go to account info verification from AA's database. God help us all.
$this->load->model('logon_model');
echo "FOUND MODEL";
$res = $this->logon_model->verify_user($this->input->post('username'),$this->input->post('password'));
echo $this->input->post('username');
echo $this->input->post('password');
The execution does not reach "FOUND MODEL", thus stops on the model loading. I have tried to use:
$this->load->model(site_url('logon_model'));
With no results. Need to mention the model file is correctly placed in the right model folder ?
How can I fix this ?
EDIT : Header for the model file :
class Logon_model extends CI_Model {
....