I'm using Zend_Filter_Input to validate form data. I'm trying to use the 'presence' => 'required', metacommand. My problem is, the error message generated by this command includes the actual field name that is being checked. my field name is something 'first_name' but I want to display 'First Name'. Here is some pseodo code representing what I'm doing:
PHP Code:
$validators = array(
'first_name' => array(
'presence' => 'required'
)
);
$input = new Zend_Filter_Input(null, $validators, $data);
If the field is missing the error message I get is:
"Field 'first_name' is required by rule 'first_name', but the field is missing"
I would like to display:
"Field 'First Name' is required."
Thanks for any help,
Brian