Zend_Form Decorators Explained




Zend Screencasts: Video Tutorials about the Zend PHP Framework  (iphone) show

Summary: <p>One of the pain points for folks who are starting to work with the Zend Framework is the Decorating functionality found in the depths of Zend_Form. I’ve witnessed countless instances when a developer becomes excited by Zend_Form’s easy-to-implement form validation and creation, only to become frustrated by countless hours of fighting with Zend_Form_Decorators. This video is a humble attempt on my part to walk through how Zend_Form Decorators work and how you can reason your way through a desire result. I couldn’t have gotten my own head around this implementation of the decorator pattern without <a href="http://weierophinney.net/matthew/plugin/tag/decorators">Matthew Weier O’Phinney’s excellent posts</a> and <a href="http://devzone.zend.com/article/3450">his original devzone article</a>.</p> <p><strong>UPDATE</strong>: check out this blog post / tutorial for ZF 1.10.0: <a rel="nofollow" href="http://framework.zend.com/manual/en/learning.form.decorators.html">http://framework.zend.com/manual/en/learning.form.decorators.html</a></p> <p>I’ll show you a bit about how Zend_Form_Decorators are constructed and how to take the default zend_form layout and transform it into a table.</p> <p>Grab a <a href="http://zendcasts.googlecode.com/svn/trunk/zc47-zend-form-decorators-explained/zc47-zend-form-decorators-explained.zip">copy of the project</a> or <a href="http://code.google.com/p/zendcasts/source/browse/#svn/trunk/zc47-zend-form-decorators-explained">browse the repository</a>.</p> <p>ServerGrove is giving Zendcast viewers a coupon! ServerGrove specializes in Zend Framework hosting and they’ve offered a 10% rebate on hosting with coupon code “zc”. If you’re looking for a host, be sure to <a href="http://secure.servergrove.com/clients/aff.php?aff=043">check them out (referral)</a>. They’ve also added an additional coupon for “Mini Hosting” plans, get $2 off by using code “zcmini”.<br> </p> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input name="cmd" type="hidden" value="_s-xclick"> <input name="hosted_button_id" type="hidden" value="3400284"> <input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" type="image"> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" width="1" height="1"><br> </form>