Tagged: filter

Zend Framework Logo 0

File Uploads using Zend_Form

File uploads can be managed quite easily using Zend_Form. First off, create a Zend_Form instance and add a Zend_Form_Element_File element, representing the file-input element. Make sure to set the encoding type to multipart/form-data: Now that we have a form let’s add the logic in the corresponding controller. We only need...

Zend Framework Logo 0

Custom Zend Validator for Localized Numbers

When dealing with i18n web applications the need to support localized number representations becomes obvious. Thus, users should be able to enter localized numbers such as “1.000.50 $” when for instance using the locale en_US or “1,000.50 $” when using de_AT. Now, when it comes to validating user input throughZend_Form...