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:
$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
--
View this message in context:
http://www.nabble.com/Zend_Filter_Input-%27presence%27%3D%3E%27required%27-tp15865637s16154p15865637.html
Sent from the Zend Framework mailing list archive at Nabble.com.