Welcome Guest, Not a member yet? Register   Sign In
form_validation.php in config and conditional validation rules
#8

You can move simple part of validation rules definitions to config and in controller getting this config item and do array_merge with hard validations rules. Or you can hold custom validations methods in you controller and hold all validation rules in config file with definitions with 'callback_' prfefix.
Reply


Messages In This Thread
RE: form_validation.php in config and conditional validation rules - by Elias - 02-02-2018, 12:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB