Inserting/Updating "Userstamps" from a Model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Inserting/Updating "Userstamps" from a Model (/showthread.php?tid=77335) Pages:
1
2
|
RE: Inserting/Updating "Userstamps" from a Model - Matleyx - 12-21-2020 YES! It's works fine! Thanks a lot RE: Inserting/Updating "Userstamps" from a Model - sknair143 - 08-31-2023 My Model : Code: <?php My Custom Model : Code: <?php But the field not getting updated in my table. The field setting as NULL RE: Inserting/Updating "Userstamps" from a Model - InsiteFX - 08-31-2023 PHP Code: // Add the fields to the RE: Inserting/Updating "Userstamps" from a Model - sknair143 - 08-31-2023 (08-31-2023, 02:13 AM)InsiteFX Wrote: Its fixed. i changed Code: session->get('user_id'); RE: Inserting/Updating "Userstamps" from a Model - InsiteFX - 08-31-2023 You can also use the session helper like this: PHP Code: session()->get('key'); RE: Inserting/Updating "Userstamps" from a Model - InsiteFX - 09-01-2023 What your doing is extending the CodeIgniter Model into a BaseModel. Then every new Model that you create you extend it with the new BaseModel that yoou created earlier. PHP Code: <?php |