News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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.

1 comment voice your opinion now!
zendframework dynamic form tutorial zendform


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Live Blogging From php/db|works 2006

Zend Developer Zone: PHP|tek 2009 Conference: Day 1

HotToForge.com: Installing Cherokee With PHP5 And MySQL Support On Ubuntu 9.10

SitePoint.com: OAuth for PHP Twitter Apps, Part I

O'Reilly Broadcast: Getting Drupal and mod_security to Play Nicely Together on Red Hat 5.x Servers


Community Events





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


laravel opinion api symfony threedevsandamaybe unittest configure voicesoftheelephpant introduction language release version list framework community composer conference interview podcast series

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