I seem to be having a similar problem and maybe the issue wasn't resolved.
But then again it might be in understanding as I'm struggling with ZFI. I've
tried the following and isvalid() returns true, but $data['empty'] is empty.
Shouldn't it return false if either is false or am I just not understanding.

I'm using the most current revision 6104.

<?php

$filters = array( );

$validators = array( 'test' => array(
                                                 'allowEmpty' => false, 
                                                 'fields' => array( 'empty',
'notempty' ) ) );                                                

$data = array( 'empty' => '', 'notempty' => 'not empty' );

$input = new Zend_Filter_Input( $filters, $validators, $data );

echo var_dump($input->isValid());
echo var_dump($validators);
echo var_dump($input);
echo var_dump(empty($data['empty']));
echo var_dump(empty($data['notempty']));

?>

Thanks,

Jim


Bill Karwin wrote:
> 
> Thanks for the issue report Jakub, I have logged it as
> http://framework.zend.com/issues/browse/ZF-1437 and I will begin working
> on it.
>  
> Regards,
> Bill Karwin
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Filter_Input-problem-tf3820154s16154.html#a12188016
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to