Well, I found solution
$validators = array(
'se' => array($vNotEmpty, 'fields' => array('se', 'se'))
);
$filterInput = new Zend_Filter_Input($filters, $validators);
$filterInput->setData($this->_request->getPost());
where $vNotEmpty is instance of my own validator (inherited
zend_validate_abstract)
isValid() method is:
public function isValid($value)
{
foreach (array_shift($value) as $v)
{
if (!empty($v))
{
return true;
}
}
$this->_error();
return false;
}
but I think the use of fields meta commands is very UNCOMFORTABLE
--
View this message in context:
http://www.nabble.com/How-to-validate-array-of-checkboxes--tf4712737s16154.html#a13495194
Sent from the Zend Framework mailing list archive at Nabble.com.