News Feed
Sections




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

TechPortal:
Custom Zend Framework Form Elements
August 01, 2012 @ 08:28:00

In this new post to the TechPortal, Gavin Corbett introduces you to Zend_Form elements (a part of the Zend Framework, v1) and how to create a custom one.

Creating forms in Zend Framework (ZF) is easy, but creating and managing complex forms can get messy! Using config files is perfectly good if you use standard Zend Form elements; it is quick and easy to setup a form in a few minutes however you will have limited control over how the form is rendered. If you want to display your own custom form element correctly in Zend Framework then some configuration is needed in order to achieve this with a config file.

He includes an example of first creating a basic form with a header and a single field element and validating the results of the submission. Building on that, he shows you how to create a custom "EmailAddress" form element and how to add in a view helper to style the output a bit.

0 comments voice your opinion now!
zendframework zendform element custom tutorial


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Flex and PHP: Party in the Front, Business in the Back

Eran Galperin's Blog: On the pitfalls of date validation with the Zend Framework

ZendCasts.com: Writing Custom Zend Filters with HTMLPurifier

php|architect: Zen(d) and the Art of Email

Till Klampaeckel's Blog: So you'd like to migrate from MySQL to CouchDB? - Part I


Community Events





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


release language community symfony opinion introduction security tool voicesoftheelephpant version interview composer list podcast series library framework artisanfiles conference laravel

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