php - zend form element inside a table -


i'm looking way can add zend form element inside table, tried method below not working:i want element inside table below it.example pic below

 $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> 

enter image description here in advance

if understand question correctly, can add item view.
declare item in form application_form_toto.
in action declare form in view

$form = new application_form_toto(); $this->view->form = $form; 

call element in html (your view)

<table>...<tr>...<td><?php echo $this->form->search;?></td>...</tr>...</table> 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -