Welcome Guest, Not a member yet? Register   Sign In
Model basic CRUD methods and other queries on other tables using $this->db->table()
#3

(This post was last modified: 02-22-2023, 02:21 AM by serialkiller.)

(02-21-2023, 10:22 PM)kenjis Wrote:
Quote:To help protect against Mass Assignment Attacks, the Model class requires that you list all of the field names that can be changed during inserts and updates in the $allowedFields class property.
https://codeigniter4.github.io/CodeIgnit...ing-fields

Another question, in the documentation in the "Upgrading From a Previous Version" section, there is no mention of version 4.3.2 which however is available from composer, is it just an oversight?

(02-21-2023, 10:22 PM)kenjis Wrote:
Quote:To help protect against Mass Assignment Attacks, the Model class requires that you list all of the field names that can be changed during inserts and updates in the $allowedFields class property.
https://codeigniter4.github.io/CodeIgnit...ing-fields

I fixed it, I thought I understood the problem, i.e. that the "start_date" and "end_date" fields weren't present in the $allowedFields array, but even adding them, I still have problems, what didn't I understand?
Reply


Messages In This Thread
RE: Model basic CRUD methods and other queries on other tables using $this->db->table() - by serialkiller - 02-22-2023, 02:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB