I'm using datatable 4 with Codeigniter, but I'm having problems with the buttons of my table: when I click the button it says error 404 .
(我在Codeigniter中使用了数据表4,但是我的表按钮出现了问题:当我单击按钮时,它显示错误404 。)
I don't know why that error appears, because I have the function created and it's in the same controller.
(我不知道为什么会出现该错误,因为我创建了函数,并且该函数位于同一控制器中。)
This a line of my code: (这是我的代码行:)
<a href="'.base_url().'computo_controller/darBaja/'.$numSer.'" role="button">
<i class="fas fa-trash btn btn-light" title="Dar de baja"></i>
</a>
and this is my function :
(这是我的功能:)
function darBaja($numSer){
$this->db->where('numSerie',$numSer);
$data = array(
'Status' => "0"
);
$this->db->update('equipo',$data);
redirect('computo_controller');
}
ask by Freyre Gonzalez translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…