mentby.com
Blog | Jobs | Help | Signup | Login
loading chart...


loading
Weird how my latest comments are not being approved - are my comments not in
line with what you want to hear - please approve my comments.
Thank you

Read more »

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

Read more »

Profile Widget
Copy and paste this HTML code to your blog or website: