I need to change the validation method for emails, so I was wondering if regular Magento overwriting rules extend to Zend's validaton function: Zend_Validate::is($email, 'EmailAddress')
. What's the best to overwrite it?
Is there any way to overwrite Zend_Validate::is() in Magento?
2.7k views Asked by Jon Derring At
2
Write your own validator, and pass it to
Zend_Validate::is()
method.Use
Zend_Validate::addDefaultNamespaces()
if you use a different namespace (ie:My_
)Alternatively, you can do: