Browsing This
Zend Framework Form : Mastering Decorators
Hi dear reader,
today I am presenting you a workshop on how to master the Zend Framework form decorators.
I hope after taking a look at the code examples and explanations it all comes together and you will have a good understanding on how to use them.
Once you understand them you will start to love them, as it is a very easy way to write forms this way.
Sunny greetings and above all enjoy,
Nick Belhomme
5 Users Commented In " Zend Framework Form : Mastering Decorators "
Hi Corey,
Once you have mastered the principle they get very easy to use.
Glad to hear you like my presentation.
grtz,
Nick
Hi man, i would ask you are you going to make some similar presentation for Zend_acl?? thnx for answer..
Hi, thanks from germany. One of the best tutorial for Zend form dectorators ever seen;)
Hi, and many thanks for this great tutorial.
I tried to apply it to my ongoing project, and encountered a problem regarding a input type=”file” after I cleared the decorators.
On this page (http://framework.zend.com/wiki/display/ZFFAQ/Forms) the third Q&A-entry brought the answer.
Every Zend_Form_Element_File needs a special decorator called “File”.
Therefor I wrote
this->form->videofile->setDecorators(array(array(’File’),’label’,array(’htmlTag,array(’tag’=>’ul));
and it worked.
Thanks very much for this presentation. Decorators are tough, and your guide is the most helpful I’ve found. Great examples. Thanks!