I got 500 internal server error in CodeIgniter. It fine when I don't write $this->load->model("xxxx");
. I just got error message cause I didn't load my model at my controller
but when I load my model, error 500 happens
this is ajax in CodeIgniter. I've tried not using ajax and I able to insert.
public function add(){
//data blablabla
//data blablabla
//data blablabla
//data blablabla
$this->load->model("Training_model"); //when i wirte it, error happen
$this->Training_model->save($data);
return response()->json($data);
}
no respond data available
this is might be simple but I can't find the solution. I am really newbie and new into this
EDIT DONE , JUST ERROR BUT FINE , I STILL ABLE TO INSERT , thanks for coming