I've been doing lots of work involving forms lately and thus far I've been pretty happy with the view helpers shipped with ZF. My only complaint is a trivial one.

The radio helper wraps each option in a label, which is great, but it adds a 'style="white-space: nowrap;"' attribute which can't be (entirely) removed. I'm assuming this is so that the label is never bumped down to the following line, orphaning the checkbox?

Whatever the reason, I think this attribute should be removed entirely OR enabled by default but fully removable. It belongs in a CSS file, not in the XHTML. Currently, passing the attribute 'label_style' => null just renders as <label style="">. Is there ever a case where you would need an empty attribute in the XHTML?

Like I said, trivial ;-)

Nathan Wright.

Reply via email to