Zend_Form Decorators Explained

Jon Leben­sold posts another great screen cast about one of the most con­fus­ing parts of Zend Frame­work ever cre­ated :-) ;

One of the pain points for folks who are start­ing to work with the Zend Frame­work is the Dec­o­rat­ing func­tion­al­ity found in the depths of Zend_Form. I’ve wit­nessed count­less instances when a devel­oper becomes excited by Zend_Form’s easy-to-implement form val­i­da­tion and cre­ation, only to become frus­trated by count­less hours of fight­ing with Zend_Form_Decorators. This video is a hum­ble attempt on my part to walk through how Zend_Form Dec­o­ra­tors work and how you can rea­son your way through a desire result. I couldn’t have got­ten my own head around this imple­men­ta­tion of the dec­o­ra­tor pat­tern with­out Matthew Weier O’Phinney’s excel­lent posts and his orig­i­nal dev­zone arti­cle.

UPDATE: check out this blog post / tuto­r­ial for ZF 1.10.0: http://framework.zend.com/manual/en/learning.form.decorators.html

I’ll show you a bit about how Zend_Form_Decorators are con­structed and how to take the default zend_form lay­out and trans­form it into a table.

Grab a copy of the project or browse the repos­i­tory.

via Zend­casts.

Tags: , , ,

Leave a Comment

*

Get Adobe Flash playerPlugin by wpburn.com wordpress themes