Welcome Guest, Not a member yet? Register   Sign In
Validation and beforeInsert
#1
Question 

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

Greetinxx

Kighlander
Reply
#2

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 )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB