How to disable filtering in Zend_Form before its re-populating?
You cannot disable them.
You could do something like:
$filters = $form->getElementFilters();
$form->setElementFilters( array() );
$form->populate($data);
$form->setElementFilters( $filters );
However, afaik Zend_Form will only filter the values when you get them from the form and not when you populate the form, so the above is pointless. In case you are after the raw values, use
$form->getUnfilteredValues();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With