Reputation: 299
thanks to help me.
In CodeIgniter, I have a Controller named "Idee" in which there is this function :
public function index(){
$this->load->model("idee");
echo "Doesn t go ahead";
$data['idees'] = $this->idee->getAll();
var_dump($data);
$this->load->view("view_home", $data);
}
But when I try the URL, the page is blank, and even the echo is not reached.
It is weir because I already did this on others page, and it's working.
Could you help me please ? Thanls a lot !
Upvotes: 0
Views: 180
Reputation: 2378
You need to name your model something different from your controller. It is failing because you are trying to redeclare the same class (Idee). Usually in CodeIgniter you would call your model something like Idee_m (the file and class).
Upvotes: 2