![]() |
ArgumentCountError. Too few arguments to function App\Controllers\Kamar::hapus() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: ArgumentCountError. Too few arguments to function App\Controllers\Kamar::hapus() (/showthread.php?tid=85133) |
ArgumentCountError. Too few arguments to function App\Controllers\Kamar::hapus() - Xyorie - 12-05-2022 ArgumentCountError. Too few arguments to function App\Controllers\Kamar::hapus() pops up at my browser when i'm working on my project. I don't understand what i might be missing. Here's my view code : Code: <button type="button" data-toggle="modal" data-target="#modalHapus" id="btn-hapus" class="btn btn-sm btn-danger" data-id="<?= $row['id']; ?>"> <i class="fa fa-trash-alt"></i> </button> And this is my controller code Code: public function hapus() Code: { The delete function couldn't work. I might also need to mention that im trying to delete a row. To give a better picture, i attach this picture ![]() |