Welcome Guest, Not a member yet? Register   Sign In
Best way to implement validation rules

(This post was last modified: 02-10-2021, 12:02 PM by jasonzig.)

(02-10-2021, 07:33 AM)falcon812311 Wrote: Hi, 

I'm developing a system for large scope project. I'm very confuse with validation in the CodeIgniter guide/documentation  it is hard to understand.

What is the best strategy to store validation rule?
Use Validation service or Controller or Models?


If you referring to data-entity validation during db INSERT/UPDATE/DELETE operations,
the setValidationRule method is mentioned in the docs (https://codeigniter.com/user_guide/model...dationRule) as taking place in the model.

Please keep us updated on how your project goes!

Incidentally, how did you select CodeIgniter4?

(Using CodeIgniter since 1.x)

Messages In This Thread
RE: Best way to implement validation rules - by jasonzig - 02-10-2021, 12:01 PM

Theme © iAndrew 2016 - Forum software by © MyBB