Form Validation Rulesets (alternative syntax proposal) |
Hey,
I think this is a great idea! I've come up with a slightly different form_validation.php config that removes some of the redundancy as well: Code: /* Then in the config array: [code]/* |-------------------------------------------------------------------------- | Validation Rule Sets |-------------------------------------------------------------------------- | | Sets of rules used throughout website | */ $config = array( 'contact' => array( $first_name_validation, $last_name_validation, ), 'register' => array( $first_name_validation, $last_name_validation, ), ); Cheers! |
Messages In This Thread |
Form Validation Rulesets (alternative syntax proposal) - by SPK - 02-03-2015, 11:13 AM
RE: Form Validation Rulesets (alternative syntax proposal) - by versalle88 - 02-03-2015, 12:24 PM
|