CODEIGNITER 4 IN-MODEL VALIDATION AND SAVE() NOT WORKING. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: CODEIGNITER 4 IN-MODEL VALIDATION AND SAVE() NOT WORKING. (/showthread.php?tid=79651) |
CODEIGNITER 4 IN-MODEL VALIDATION AND SAVE() NOT WORKING. - jasshh - 07-15-2021 I'm trying to work with CodeIgniter's Model with save(), This is introduced new in the CodeIgniter 4, moreover, when I'm directly calling the below method data is not getting saved in the database $this->itemModel->save($data) I'm getting the below error on the browser ErrorException Attempt to read property "errno" on bool <CONTOLLER - INVENTORY.PHP >> PHP Code: <?php <<MODEL:- INVENTORYMODEL.PHP >> PHP Code: <?php << VIEW: INVENTORY.PHP>> Code: <div class="form-panel w3-padding-16 w3-round"> RE: CODEIGNITER 4 IN-MODEL VALIDATION AND SAVE() NOT WORKING. - InsiteFX - 07-16-2021 I fixed your post next time please do not use cut copy and paste use the code tags in the editor menu. |