Hi again,
i have some stupid problem with Zend_Filter_Input, when i do the following:
// load custom filter
require_once 'Zend/Loader.php';
//Zend_Loader::loadClass('Byteshelter_Validate_FileList');
$filters = array(
'*' => array(
'StripTags',
'StringTrim',
),
);
$validators = array(
'preis' => array('Digits'),
'kategorie' => array('InArray', $someArray),
'beschreibung' => 'Alnum',
'material' => 'Alnum'
'bilder' => array('FileList', '*.pdf',
'../some/path'),
array(
'presence' => 'required',
'allowEmpty' => false
),
);
require_once 'Zend/Filter/Input.php';
$input = new Zend_Filter_Input($filters, $validators, $_GET);
i get the error message
Class based on basename 'InArray' must implement the
'Zend_Validate_Interface' interface in file
\/var\/www\/mystuff\/apps\/library\/ZendFramework-1.0.1\/library\/Zend\/Filter\/Input.php
line 830"
but when i look at Zend/Validator/InArray.php i see:
class Zend_Validate_InArray extends Zend_Validate_Abstract {...}
So i think there must be something in the Zend_Loader component that i'm
not aware of...
The other filters like 'Digits' and 'Alnum' are working, only my on
filter from library/MyLibrary/Validator/FileList.php and the InArray or
GreaterThan are not working.
I hope someone can help me out.
best regards,
Steven Truppe