If you just want to retrieve the single element from the form file then,
class Form_Test() {
public function init() {
$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',
));
}
}
In the controller file:
$form = new Form_test();
$this->view->form = $form;
In the view file you can call the single element only as,
<table>...<tr>...<td><?php echo $this->form->getElement("search");?></td>...</tr>...</table>
Also, if you do not want your design to be controlled from decorators, you can simply call removeDecorator() in form and adjust your design from view itself with this method.