However, I can't work out how this:
$number = new Zend_Form_Element_Text('number');
$number->setLabel('Extension Number')
//Taken straight from the web page
$number->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td', 'class' => 'element')), array('Label', array('tag' => 'td'), array(array('row' => 'HtmlTag'), array('tag' => 'tr')),)));
turns into this HTML:
<td><label for="number" class="required">Extension Number</label></td>
<td class="element">
<input type="text" name="number" id="number" value="48457"></td>
Can someone help me please ?
Thanks,
GTG
没有评论:
发表评论