how can i get this table from my ZEND_FORM?
<table>
<tr>
<th>label 1</th>
<th>label 2</th>
</tr>
<tr>
<td>form element 1</td>
<td>form element 2</td>
</tr>
</table>
This is what I have. But this is not correct.
$kinder_decorators = array(
'ViewHelper',
'Errors',
array('Label', array('tag' => 'th')),
array(array('data' => 'HtmlTag'), array('tag' => 'td'))
);
Can anybody help please?
BR Matt
You will need to use a ViewScript decorator on the whole form I'm afraid. The ViewScript decorator offers more flexibility for more complex layouts of form elements.
See my answer here for a small example. If it's unclear, hit me up with a comment, and I'll expand a little on it here.