Podrías colocarla en el directorio de Models y llamarlo en addValidator, algo así
Código PHP:
Ver original// Application/Models/MyValidFloat.php
<?php
class Application_Model_MyValidFloat extends Zend_Validate_Abstract
{
const FLOAT_NUMBER = 'float';
protected $_messageTemplates = array( self::FLOAT_NUMBER => "'%value%' is not a floating point value"
);
public function isValid($value)
{
$this->_setValue($value);
$this->_error(self::FLOAT_NUMBER);
return false;
}
return true;
}
}
Código PHP:
Ver original//.....
->addValidator(new Application_Model_MyValidFloat);