CodeIgniter Forums
Unable to locate the model you have specified - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Unable to locate the model you have specified (/showthread.php?tid=51666)



Unable to locate the model you have specified - El Forum - 05-12-2012

[eluser]Unknown[/eluser]
news_model.php

Code:
class News_model extends CI_Model {

public function __construct()
{
  $this->load->database();
}
}



news.php

Code:
class News extends CI_Controller {

public function __construct()
{
  parent::__construct();
  $this->load->model('News_model');
}

}

and i am getting an error like.."Unable to locate the model you have specified: news_model"

i am unable to find any solution i did lots of google but still not find the solution

please help me.
Any help will be greatly appriciated

Thanks in advance.


Unable to locate the model you have specified - El Forum - 05-12-2012

[eluser]skunkbad[/eluser]
Maybe try to lowercase the names?


Unable to locate the model you have specified - El Forum - 05-13-2012

[eluser]theshiftexchange[/eluser]
and check the model is in the root of /models directory


Unable to locate the model you have specified - El Forum - 05-14-2012

[eluser]Chathuranga Tennakoon[/eluser]
can you check whether both of your models are directly available inside the models directory? then please tell me the operating system that is running in the server where your apache server is available.