When I use the $input->isValid() method (no arguments), it throws an exception:
Quote:
|
Catchable fatal error: Argument 1 passed to Zend_Validate::addValidator() must implement interface Zend_Validate_Interface, integer given, called in /var/www/dcube/Zend/Filter/Input.php on line 639 and defined in /var/www/dcube/Zend/Validate.php on line 69
|
The arguments passed to the constructor are:
PHP Code:
$filters = array(
'parent_dir' => 'Int',
'name' => 'StringTrim',
'title' => 'StringTrim',
'inherit_keywords' => 'StringTrim',
'keywords' => 'StringTrim',
'description' => 'StringTrim'
);
$validators = array('*' => array('StringLength', 1, 255), 'parent_dir' => array('GreaterThan', 0));
$input = new Zend_Filter_Input($filters, $validators, $_POST);
Does anyone know this problem?