UPDATE: ITS WORKING NOW, A ERROR IN MY MODAL. SORRY.我的控制器或模型有點問題,我不知道,但我需要你的幫助。我剛開始出錯調用未定義的方法 Modeloproduccion::obtener_produccion_por_id()這是我的控制器Produccion.php function actualizar(){ $this->load->helper('form'); $data['main_title'] = 'Proyectos'; $data['title2'] = 'Ver/Editar Proyecto'; // Obtenemos el id de la editorial a editar $id = $this->input->post('id'); $resultado = $this->modeloproduccion->obtener_produccion_por_id($id);這是我的模型Modeloproduccion.php function obtener_produccion_por_id($id) { $this->db->where('id', $id); $query = $this->db->get('produccion'); return $query->result_array(); }任何的想法?太感謝了!
- 2 回答
- 0 關注
- 185 瀏覽
添加回答
舉報
0/150
提交
取消