Zend Form User Guide
Getting Zend_Form
Getting your hands on the Zend_Form component is quite easy. You can download the latest “stable” version on the SourceForge.net project page. Or if you want the bleeding edge version, you can checkout the code from the SVN repository using the following command in the directory you’d like zend_form to be downloaded to:
svn co https://zendform.svn.sourceforge.net/svnroot/zendform .
Installing Zend_Form
Installation is very similar to the Zend Framework. In your downloaded files, just move the “library” folder to any directory you wish, then modify PHP’s include_path to include that directory. You can then use the component like any other within your Zend Application:
Zend_Loader::loadClass('Zend_Form'); $form = new Zend_Form(); // Do what you like...
NOTE: Although the file structure is such that you could, technically, just merge the Zend Framework library folder with the Zend_Form library folder, I recommend against it. Zend_Form is updated frequently and is not officially part of the Zend Framework, so it is more correct to have it in a separate location.
The Zend_Form Object
The Zend_Form object is what will contain a single overall form. Before adding pages, fields, validators, etc. you must first create an instance of the Zend_Form object.
$form = new Zend_Form();
