Codeigniter Form Validation: Where to set rules? -


i'm trying achieve "skinny controller", "fat view" , "fat model" structure. however, obstructed form_validation library.

if controller deals form has 2-3 fields, isn't bad.

but when have 10 fields, things starts long. start making callbacks, setting form_error messages, controller reaches hundreds of lines.

is there general practice on set rules? in controller?

you try put them in config files described here found hard work (i put rules in controller , close eyes), maybe suites needs.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -