Also the first line with 'GreaterThan':
$validators = array(
'preis' => array('GreaterThan', 0),
'kategorie' => array('InArray',
array($this->_template->kategorie)),
'beschreibung' => 'Alnum',
'material' => 'Alnum',
'bilder' => array('FileList', '*.jpg',
'../var/upload/images'),
array(
'presence' => 'required',
'allowEmpty' => false
),
);
gives me a similar error message:
Class based on basename 'GreaterThan' must implement the
'Zend_Validate_Interface' interface in file
/\.../\apps\/library\/ZendFramework-1.0.1\/library\/Zend\/Filter\/Input.php
line 830"
i get cracy with this
Taylor Andrew wrote:
> Hi,
>
> Try it like this:
>
> 'kategorie' => Array('InArray' => Array('Kat 1', 'Kat 2', 'Kat 3')),
>
> Andrew
>
> --
> Andrew Taylor
> Web Site Manager
> City of Durham Council
> 17 Claypath
> Durham
> Co. Durham
> DH1 1RH
> Tel:0191 3018769
> Fax:0191 3018426
> E-Mail: [EMAIL PROTECTED]
>
>
>
>> -----Original Message-----
>> From: Truppe Steven [mailto:[EMAIL PROTECTED]
>> Sent: 29 October 2007 11:29
>> To: [email protected]
>> Subject: [fw-general] Strange problem with Zend_Filter_Input
>>
>> 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\/libra
>> ry\/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
>>
>>
>>
>>
>>
>>
>>
>>
>
> This email and its attachments are intended for the addressee only and may be
> confidential or the subject of legal privilege. If this email and its
> attachments have
> come to you in error, you must take no action based on them, nor must you
> copy them,
> distribute them or show them to anyone. Please contact the sender to notify
> us of the
> error.
>
> Durham City Council accept no liability for, and shall not be legally bound
> by,
> the contents of this email. No assurances are given as to the authority of
> the sender
> to act on the Council's behalf and the views expressed within this email may
> not be
> official Council policy but instead the personal views of the distributor.
>
> This email and any attached files have been scanned for the presence of
> computer viruses
> however, you are advised that Durham City Council bears no liability for
> attachments
> and you therefore open any attachments at your own risk.
>
>