Cant Load Model In Controller |
Hi,
I'm unable to load Model in the Controller I tried to follow the tutorials but don't know where I messed up or what am I doing wrong. RecordModel.php PHP Code: <?php PHP Code: <?php this is the error i get Code: Error
Did you save with character case as the class name? They have to match character case.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
File permission?
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
(10-12-2021, 04:52 AM)Nomie7 Wrote:(10-11-2021, 07:33 PM)paulbalandan Wrote: Where did you save your RecordModel?
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(); Here is the error Code: Error Im trying to follow the docs but dont how am i keep getting it wrong
(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. 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! ***/
check everything nothing is wrong checked, database name, table name, connection details and everything else. still the same. even make a new table new model file.
|
Welcome Guest, Not a member yet? Register Sign In |