Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2007, 08:56 AM
Junior Member
 
Join Date: Jul 2007
Posts: 1
Default Zend_Filter_Input Error

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'1255), 'parent_dir' => array('GreaterThan'0));

$input = new Zend_Filter_Input($filters$validators$_POST); 
Does anyone know this problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:49 AM.