zendframework/zf2 — pull request #1496 by cgmartin (2012-06-14 02:20:04+00:00)
Title: [Form] New formButton view helper

My first contribution to ZF2. Thought I'd start with something relatively easy...

- Borrowed patterns from formLabel and formInput.
- Extends from FormInput, though not much is re-used ($validTagAttributes only).
- On render()/__invoke(), it looks for an element attribute named "content" or for a $buttonContent parameter as a convenience. For complex content, the user will can use the openTag()/closeTag() explicitly.

Looking forward to feedback.
Cheers,
Chris Martin