News Feed
Sections




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

Rob Allen's' Blog:
A Zend Framwork compound form element for dates
March 21, 2011 @ 12:23:08

In a new post to his blog today Rob Allen shows you how to create compound form element handling in a Zend Framework application thanks to some custom work with Zend_Form and Zend_View extensions.

A little bit of googling found this site http://codecaine.co.za/posts/compound-elements-with-zend-form which has not unfortunately disappeared, so the code in this article owes a lot of the author of that article. It turns out to be remarkably simple to create a single Zend Form element that is rendered as multiple form elements. We create an element object and a view helper object and we're done.

He shows how to create a custom form date helper that extends the base XHTML to create the isValid/getValue methods for handling the complex date input. There's also the code for the view that creates the custom date input and repopulates the content if there's a need.

0 comments voice your opinion now!
zendframework complex date select zendform zendview


blog comments powered by Disqus

Similar Posts

Michael Kimsal's Blog: Zend Framework and Doctrine integration autoloading of doctrine models

Zend Developer Zone: Announcing the August 2011 Zend Framework Bug-Hunt

Karsten Deubert's Blog: Zend_MVC, Controller Plugins and Annotations

Chris Hartjes' Blog: The Story and Rebirth Of Zend_Service_Audioscrobbler, Part 2

Padraic Brady's Blog: Zend Framework Blog Tutorial - Part 7: Authorisation with Zend_Acl & Styling


Community Events

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


community symfony list api application language composer php7 part2 series programming opinion introduction example framework podcast yii2 laravel project interview

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