• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validation and beforeInsert

Hello there.

What is the order in which a model works?

Is the validation carried out first and then a possible "beforeInsert" carried out or is it the other way around?

I am using CI4



From looking at the code it looks like the validation is done first then save, insert, update and replace etc;

Take a look at system/BaseModel and system/Model
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.