Model refusing to insert data |
(01-07-2021, 04:35 AM)berendbotje91 Wrote: Check this (http://codeigniter.com/user_guide/models...your-model), and specifically the $allowedFields part. This is why I'm confused. Data is accessible through $data using the same field names that $allowedFields expects and yet nothing happens when I try to save it using the provided methods. Query builder works, as I've already used it to insert data in a seed file. However, I want to avoid using query builder in my controllers considering I've already put in the effort of defining all of my applications models along with validation rules to keep things sane. edit: figured out a way of doing things where i can still validate user data. now if only i can get entities working properly so that I can use the setter methods I wrote for hashing data instead of having to re-write the code in the controller. |
Messages In This Thread |
Model refusing to insert data - by cantinsertdata - 01-06-2021, 10:10 PM
RE: Model refusing to insert data - by berendbotje91 - 01-07-2021, 04:35 AM
RE: Model refusing to insert data - by cantinsertdata - 01-07-2021, 02:05 PM
RE: Model refusing to insert data - by demyr - 01-08-2021, 08:28 AM
RE: Model refusing to insert data - by cantinsertdata - 01-08-2021, 01:12 PM
RE: Model refusing to insert data - by includebeer - 01-09-2021, 07:21 AM
RE: Model refusing to insert data - by cantinsertdata - 01-10-2021, 12:02 AM
RE: Model refusing to insert data - by wdeda - 01-09-2021, 08:00 AM
RE: Model refusing to insert data - by berendbotje91 - 01-11-2021, 12:37 AM
RE: Model refusing to insert data - by cantinsertdata - 01-11-2021, 11:14 AM
RE: Model refusing to insert data - by paulbalandan - 01-12-2021, 09:58 AM
|