Problem with Model()->find() and Model()->findAll() |
Tell us about BaseModel. Does it extend CodeIgniter\Model? What are your namespace statements?
(10-06-2019, 01:01 PM)ciadmin Wrote: Model already has $table and $primaryKey properties. Shouldn't your model have a constructor, where it sets those? The docs show assignments to those and other Model properties in the class definition. Since the values are not typically used in a dynamic way there is no reason not to do it that way. |
Welcome Guest, Not a member yet? Register Sign In |