ArgumentCountError. Too few arguments to function App\Controllers\Kamar::hapus() |
12-05-2022, 02:19 AM
(This post was last modified: 12-05-2022, 02:21 AM by Xyorie. Edit Reason: grammar and positioning )
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 |
Welcome Guest, Not a member yet? Register Sign In |