If I have a model called Admin_user which extends CI_Model, how do I name the file in which this model class is so that codeigniter can load it?
I named the file admin_user.php and placed it in application/models directory but Codeigniter does not load the class when I try loading the model like
$this->load->model('admin_user');

Recommended Answers

Am not familiar with CI but my guess is that the case should match.

admin_user <> Admin_user
Jump to Post

All 3 Replies

Am not familiar with CI but my guess is that the case should match.

admin_user <> Admin_user

Thanks Cereal.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.