News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
Tibo Beijen's Blog:
Zend_Form Building dynamic forms
December 21, 2009 @ 13:37:22

In this new post to his blog Tibo Beijen looks at more things you can do with dynamic forms in the Zend Framework. This time he breaks the "one row to one form" link for cases of undetermined fields or when no one-to-one connection exists.

Take for example a shopping cart that shows the amounts of each product. In this article I'll take a look at how to dynamically construct a form based on the data being edited, use subforms to reuse common parts and group related values, create composite 'elements' by using the default Zend_Form_Element in combination with a custom decorator, create additional elements with Javascript and have them processed by the form when submitted.

He lays out the situation where this might be used and how to use the Zend_Form component to create more abstract objects for working with your data. He adds on a decorators to the objects to replace the ViewRenderer decorator and integrates jQuery to allow the user to add in new fields as they need them.

0 comments voice your opinion now!
zendframework dynamic form tutorial zendform



Similar Posts

AOL Developer Network: A Primer for OpenID with PHP

Chris Hartjes' Blog: Zend_Service_Audioscrobbler moves to Zend Framework Core

Melvin Rivera's Blog: Creating a custom WordPress database error page

DevShed: Working with Prepared Queries with PDO Objects in PHP 5

Sameer Borate's Blog: Google Translation PHP wrapper


Community Events









Don't see your event here?
Let us know!


windows sqlserver facebook job framework microsoft developer symfony podcast zendframework codeigniter drupal zend feature wordpress extension opinion release conference performance

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