Welcome Guest, Not a member yet? Register   Sign In
Handling of typos in form validation rules
#1

[eluser]voidstar[/eluser]
Hello,

I just completed my first CI project, and I'm very pleased with the result. CI is great! Its structure and built-in facilities were very helpful!

One of the facilities that I used was Form Validation, and although it generally worked very well, I found one anomaly: invalid rules are ignored. For example in the following rule fragment "exact_length" is misspelled.

array(
'field' => 'yyyy',
'label' => 'Year',
'rules' => 'trim|required|exact_lngth[4]|is_natural_no_zero|callback__yyyy_check'
)

Form validation apparently ignores rules that it doesn't recognize. I don't know whether this is a feature or a bug, but if it is a feature, it should be documented.

I found post about a closely related problem, i.e. a misspelled callback function, here.
http://ellislab.com/forums/viewthread/92501/


Messages In This Thread
Handling of typos in form validation rules - by El Forum - 01-07-2009, 10:07 AM
Handling of typos in form validation rules - by El Forum - 01-07-2009, 10:17 AM
Handling of typos in form validation rules - by El Forum - 01-07-2009, 08:12 PM
Handling of typos in form validation rules - by El Forum - 01-07-2009, 08:52 PM
Handling of typos in form validation rules - by El Forum - 01-07-2009, 09:08 PM
Handling of typos in form validation rules - by El Forum - 01-07-2009, 09:34 PM
Handling of typos in form validation rules - by El Forum - 01-07-2009, 09:45 PM
Handling of typos in form validation rules - by El Forum - 01-08-2009, 01:31 AM
Handling of typos in form validation rules - by El Forum - 01-08-2009, 02:06 AM
Handling of typos in form validation rules - by El Forum - 01-08-2009, 03:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB