I've been using ZF for a few years now and I'm pretty fluent with probably 70% of the framework, BUT I must admit I still don't fully grasp Form Decorators, the complexity is just overwhelming and such a waste of time - it took me 1 hour to build 3 basic CRUD controllers, and I've now wasted 2 hours battling with the Form Decorators, this totally defies the RAD power of MVC.
I've looked at so many tutorials, but they all indicate a specific form field layout - unless I can fully grasp how tags are processed exactly what they mean and when to use which it will remain a battle. The decorator options arrays are most of the time nested so deep that one can barely understand what the form layout will look like, not to mention the difficulty trying to tweak a form. Then there are the potholes, remove a description or some other field and you lose all field labels, especially when using file type fields. I looked at this tutorial http://devzone.zend.com/article/3450-Decorators-with-Zend_Form http://devzone.zend.com/article/3450-Decorators-with-Zend_Form it shows a form in table structure. I want to use this method, but instead of a 2 column layout I want 1 column with the labels on their own tr (row) above each respective form field - so if I have 5 form fields, I want 1 column and 10 rows... tr td label /td /tr tr td formfield /td /tr My main problem is I don't fully understand how the array-options structure for the $form->setDecorators() really work i.e. HtmlTag, Value, VieHelper, the order of these values and arrays, nesting etc. etc. - I believe if I grasp this, I will be able to do anything with decorators. Please help, and thanks in advance -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Over-engineered-Zend-Form-Decorators-help-tp3850650p3850650.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
