News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



Rob Allen's Blog:
Simple Zend_Form File Upload Example
0 comments :: posted Monday April 07, 2008 @ 09:30:30
voice your opinion now!

Rob Allen has posted an example (a simple one to get you started) of creating a file upload form in the Zend Framework.

Zend Framework 1.5's Zend_Form component is missing support for the file input element as it is waiting on a file upload component to build upon. We're busy people, so we'll fake it...

His example gives a screenshot of the end result and includes all of the code needed to make it all work - the form, the custom file form element, a ValidFile validation class to ensure you're getting exactly what you want and the controller to define the form and execute it once the user submits.

tagged with: zendform validate example code zendframework



application job conference cakephp zend pecl framework releases release book code mysql ajax developer PEAR zendframework PHP5 database package security

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework