![]() |
Hi, I wondering about getting this error " You must set the database table to be used with your query."
The marked line is this Code: $var=$this->MyModel ->my_function($vars,$id); I do that inside a library. The parts of the model are Code: namespace App\Models; may i'm blind to see the missing thing...
Code: <?php if you extend CI4 model , you set field in class definition
Is it a MUST to define all these "protected ...." settings,
i dont wont to work with the built-in CRUD methods, so i guess that i dont need to define it!? I have figure out that the problem comes from another direction, a name of a called function was wrong, if i corret this, the error message (i'm confused about the kind of messag) go away. Now the model works well, without setup the datas on top of the modell. |
Welcome Guest, Not a member yet? Register Sign In |