Welcome Guest, Not a member yet? Register   Sign In
How develop Model and validation
#13

(01-16-2020, 12:05 PM)jreklund Wrote: It will be matched against a pre-defined message string (mobile). Or if you build a custom validation callback for that field and set different error messages depending of the mobile number.

But the function itself should always return true or false. But it can set different messages depending on what have failed.

https://codeigniter.com/user_guide/libra...ding-rules
https://codeigniter.com/user_guide/libra...on-methods

Ohhh Thank you
Reply


Messages In This Thread
RE: How develop Model and validation - by asrofie - 01-13-2020, 08:33 AM
RE: How develop Model and validation - by Mad Ox - 01-14-2020, 05:13 AM
RE: How develop Model and validation - by omid_student - 01-19-2020, 01:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB