Anthony
Anthony

Reputation: 3218

ZF error decorator. How to wrap error decorator into <tr><td>?

I know that it's possible to create own decorator but I'm interested in is it possible to create it throught the standart error decorator?

I would like to get smth like this:

<table>
     <tr>
          <td><label></td>
          <td><input></td>
     </tr>
     <tr>
          <td></td>
          <td><ul><li>ERROR</li></ul></td>
     </tr>
</table>

Upvotes: 0

Views: 240

Answers (1)

mingos
mingos

Reputation: 24502

Regrettably, as of ZF version 1.11.7, only a single tag is supported when it comes to wrapping forms, form elements or individual decorators. You will indeed require a custom decorator.

Upvotes: 1

Related Questions