Programming the new world

Programming your life and the net, one day at a time

Browsing This

Zend Framework Form : Mastering Decorators

Posted in August 24th, 2009
Published in PHP

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 "

Subscribes to this post Comment RSS or TrackBack URL
Corey says,
9-10-2009 at 13:13:59 from 72.229.243.69    

Thanks very much for this presentation. Decorators are tough, and your guide is the most helpful I’ve found. Great examples. Thanks!

admin says,
9-10-2009 at 15:48:52 from 84.193.86.50    

Hi Corey,

Once you have mastered the principle they get very easy to use.
Glad to hear you like my presentation.

grtz,
Nick

the.ufon says,
10-5-2009 at 12:24:21 from 90.177.63.183    

Hi man, i would ask you are you going to make some similar presentation for Zend_acl?? thnx for answer.. :P

1-4-2010 at 12:14:22 from 217.67.37.209    

Hi, thanks from germany. One of the best tutorial for Zend form dectorators ever seen;)

Frank says,
7-9-2010 at 10:06:08 from 83.221.236.205    

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.

Leave Your Reply Below

 Username

 Email Address

 Website

Sticky note: Please double check your comments before submit Please Note: The comment moderation maybe active so there is no need to resubmit your comment

All time most popular tags