Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend Framework 2 forms, did they eliminated the decorator pattern?

I'm currently learning ZF2, is it possible that the Form decorator pattern from ZF1 has been removed in ZF2?

Am I right writing own view helper instead, decorating my forms?

like image 618
Guido Krömer Avatar asked Oct 22 '22 16:10

Guido Krömer


1 Answers

Decorators in ZF2 no longer exist. They were a mess in ZF1 even. However feel free to make your own decorators. You might also be interested in checking out Form Collections http://zf2.readthedocs.org/en/latest/modules/zend.form.collections.html

like image 112
Diemuzi Avatar answered Oct 27 '22 00:10

Diemuzi