array('label' => 'Regex validated'));
$element = $this->getElement('someElement')
->addValidator('regex', false, array('/^[a-z]/i'));');
$element ->getValidator('regex')
->setMessage('Input does not match regular
expression','regexNotMatch');
The error message name is determined by looking at the code for the
Zend_Validate_Regex - several validators have more than one error.
Mohamed Said wrote:
>
> hi
> can any one tell me how can i change in the error message appeared with
> regular expressions in zend form?
>
> Thanks
>
--
View this message in context: http://www.nabble.com/regular-expressions-tp22645894p22677644.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论