2008年9月25日星期四

[fw-mvc] File validators

Hi all

Why does addValidator() throw breakChainOnFailure out when adding a validator to a File element?

This is the code for Zend_Form_Element_File::addValidator():

public function addValidator($validator, $breakChainOnFailure = false, $options = array())
{
 $adapter = $this->getTransferAdapter();
 $adapter->addValidator($validator, $options);
 return $this;
}

As you can see $breakChainOnFailure is being ignored.

- Neil

没有评论: