Zend Form: How do I make it bend to my will?

后端 未结 14 1811
你的背包
你的背包 2021-01-29 18:53

I\'ve read the manual many times, I\'ve scoured the posts offered by Google on the subject, I have even bought a couple of books that deal with ZF. Now, why am I still confused?

14条回答
  •  你的背包
    2021-01-29 19:50

    I wrote some sub-classes to Zend_Form and the decorators to make it layout the form in a

    . It even had some special tricks to do things like make multiple submit buttons show on the same row.

    Took a full day of hacking around to get it working. It was written against Zend 1.5.1 so don't know if it will work with the current version, but if you are interested I could probably upload the source somewhere.

    This seems to be a very common complaint with Zend Forms.

    (I know I'll get poo-poo'd by the CSS purists over using tables to layout forms, and while I agree that CSS is better for most things, I have yet to see good form layout using CSS that doesn't look like a butt-ugly kludge. With tables the forms 'just work' pretty much on every browser I need them to.)

    EDIT: Okay, speaking of butt-ugly kludges, I've put my code for producing tabular zend forms in github. Go here to see it. (Because gaoshan88 asked for it.)

    提交回复
    热议问题