>From the manual:
"Unknown fields are those that are not declared in any rule in the array of
validators, but appear in the input data. "

I think you need to add these field to validator array, even if there is no
validation needed. I don't if you need add some rules. If its needed you can
use the presence metacommand.

There is also getUnknown() method. But I don't know if the values will be
filtered or escaped.


mysticav wrote:
> 
> "Or should I use Zend_Input Directly "
> Sorry,  I mean Zend_Filter 
> 
> mysticav wrote:
>> 
>> Hi,
>> 
>> How can I get filtered data without using a validator, only the filter:
>> 
>> Example:
>> $validators = null;
>> $filters = array('StringTrim','StripTags');
>> $data = some data here.....
>> 
>> $filter = new Zend_Filter_Input($filters, $validators,$data,$options);
>> 
>> // get filtered Data:
>> $filter->{field}
>> 
>> AS you can see, I didn't provide any validator.
>> 
>> Or should I use Zend_Input Directly ? 
>> 
>> Thanks.
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-Filtered-data-from-Zend_Input_Filter-tp16211128s16154p16228141.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to