Welcome Guest, Not a member yet? Register   Sign In
Unable to locate the model you have specified
#1

[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.
#2

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

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

[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.




Theme © iAndrew 2016 - Forum software by © MyBB