Welcome Guest, Not a member yet? Register   Sign In
Cant Load Model In Controller
#9

(10-13-2021, 05:11 AM)Nomie7 Wrote: Ok we got that solved by changing the name. I'm new so please help me understand this error now.
Here is code
PHP Code:
        $record = new RecordsModel();
        $data $record->findAll();
        print_r($data); 

Here is the error

Code:
Error
Call to a member function getResult() on bool

Im trying to follow the docs but dont how am i keep getting it wrong

Something must be wrong in your model (table name, column name, …) or in your database credentials in the configuration file because findAll() should work. Double check everything.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
Cant Load Model In Controller - by Nomie7 - 10-11-2021, 04:01 AM
RE: Cant Load Model In Controller - by Nomie7 - 10-12-2021, 04:52 AM
RE: Cant Load Model In Controller - by InsiteFX - 10-12-2021, 01:26 AM
RE: Cant Load Model In Controller - by ikesela - 10-12-2021, 08:20 PM
RE: Cant Load Model In Controller - by Nomie7 - 10-13-2021, 05:11 AM
RE: Cant Load Model In Controller - by includebeer - 10-13-2021, 07:57 AM
RE: Cant Load Model In Controller - by Nomie7 - 10-13-2021, 10:58 AM
RE: Cant Load Model In Controller - by Nomie7 - 10-13-2021, 12:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB