Include the relative path from the directory of your model, if your model is PLACED inside a sub-directory. Consider an example, you have a model which is placed at application/models/blog/AllPosts.php you can load it by using: $this->load->model('blog/AllPosts');
You can access the methods provided by the model, once the model GETS loaded by using an object which has the same name as your controller:
class MyBlogController extends CI_Controller{ public function MyblogModel() { $this->load->model('blog_model'); $data['que'] = $this->blog_model->get_last_five_entries(); $this->load->VIEW('blog_model', $data); }}