Call to a member function getFirstRow() on bool |
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;
should be like this only (no $email), search by primarykey
return $result = $stud_m->find($id);
Using QueryBuilder you can do it like this.
PHP Code: $data = []; Give that a try. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
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. |
Welcome Guest, Not a member yet? Register Sign In |