Validation errors per field AND per rule

At the moment CI uses validation error messages per rule. There is already a library to convert them to be field-based (, but is it possible to have them be field and rule based?

Something like this: (In external language file. Should also work with ->set_message())
$lang['id_in_db','places']    = "This place does not exist.";
$lang['id_in_db', 'objects']    = "This object does not exist.";
$lang['id_in_db']    = "This ID does not exist.";
Where places or objects are the name of the field that needs to be validated and id_in_db is the validation rule/function. If no field is set, it would default to the standard rule.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.