我正在尋找一種方法,我可以在表內添加我的zend表單元素,我試過下面這個方法,但它不工作:我想要這個元素在它下面的表內。下面表內的zend表單元素
$name2 = new Zend_Form_Element_Text('search');
$name2->setLabel('Search Enterprise Name:');
$name2->addValidator('NotEmpty')
->setDecorators(array(
'FormElements',
array('HtmlTag', array('tag' => 'table', 'id' => 't1')), 'Form',
));
<div class="col-md-6" style="margin-left: 0;">
<table class='spreadsheet dataTable' cellpadding='0' cellspacing='' id="t1">
<thead>
<tr role="row">
<th>ENTER SERVICE PROVIDER USED</th>
</tr>
</thead>
</table>
<button type="button" onclick="alert('I work!')">Click Me!</button>
</div>
感謝例如PIC提前
我應該在phtml中回顯元素嗎? –