Welcome Guest, Not a member yet? Register   Sign In
Regarding CodeIgniter's Model
#1

(This post was last modified: 03-09-2021, 09:35 PM by emmanuel.)

Love CI model implementation. Just got two quick questions:

  1.  Is there any documentation regarding $insertID in the model configuration?
    protected $insertID = 0;
  2. For $allowedFields, docs read:

    Quote:This array should be updated with the field names that can be set during save, insert, or update methods.
  3. Does this include the fields being created by callbacks (e.g. password hash etc)? And does it only apply when passing an array (like Laravel) during save, insert & update? As in if I set each variables individually and ->save(), it won't apply?

Thanks ya Smile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB