![]() |
Call to a member function getFirstRow() on bool - 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: Call to a member function getFirstRow() on bool (/showthread.php?tid=79612) |
Call to a member function getFirstRow() on bool - lucavalentino - 07-07-2021 I am converting from codeigniter 3 to 4. I would like to use the find function, but I get Call to a member function getFirstRow () on bool Model PHP Code: namespace App\Models; Controller PHP Code: namespace App\Controllers; RE: Call to a member function getFirstRow() on bool - ikesela - 07-07-2021 should be like this only (no $email), search by primarykey return $result = $stud_m->find($id); RE: Call to a member function getFirstRow() on bool - InsiteFX - 07-08-2021 Using QueryBuilder you can do it like this. PHP Code: $data = []; Give that a try. RE: Call to a member function getFirstRow() on bool - rdconsolo - 09-21-2024 It can be a lot of things. Read the log on writable/logs. In my case was a foreign-key left on the database table pointing to a non existing field. Good luck. |