when added a zend form inside a table td decoators are not working -


i have zend form , decorated , in phtml when did <?php echo $this->form ; ?> working

but inside table td doing same thing decorators not working .

<td><?php echo $this->form ; ?></td> not working

this form

<?php class admin_form_inventoryform extends zend_form {        private $from;     private $to;     private $noofrooms;     private $roomtype;      private $cancel;     private $save;       function init()     {         $this->setname("frmaddinventory");         $attribs = array(             "id" => "frmaddinventory",             "name" => "frmaddinventory"         );          $this->setattribs($attribs);           $this->from = new zend_form_element_text("invdatefrom");         $this->from->setlabel("from");         $this->from->setdecorators(                              array(                                   array('viewhelper',                                             array('helper' => 'formtext')                                 ),                                 array('htmltag',                                             array('tag' => 'div', 'class' => 'formfield clearfix')                                 ),                                 array('label',                                             array('class' => 'label')                                 ),                              )                          );                                       $this->to = new zend_form_element_text("invdateto");         $this->to->setlabel("to");         $this->to->setdecorators(                                  array(                                       array('viewhelper',                                                 array('helper' => 'formtext')                                     ),                                     array('htmltag',                                                 array('tag' => 'div', 'class' => 'formfield clearfix')                                     ),                                     array('label',                                                 array('class' => 'label')                                     ),                                  )                              );          $this->noofrooms = new zend_form_element_text("invnoofrooms");         $this->noofrooms->setlabel("rooms");         $this->noofrooms->setdecorators(                                          array(                                               array('viewhelper',                                                         array('helper' => 'formtext')                                             ),                                             array('htmltag',                                                         array('tag' => 'div', 'class' => 'formfield clearfix')                                             ),                                             array('label',                                                         array('class' => 'label')                                             ),                                          )                                      );          $this->roomtype = new zend_form_element_hidden("hdnroomtype");                $this->save = new zend_form_element_button("btnsave","save");          $this->cancel = new zend_form_element_reset("btnreset","cancel");           $elements = array(             $this->noofrooms,             $this->from,             $this->to,             $this->roomtype,             $this->save,             $this->cancel         );          $this->addelements($elements);     }     } 

enter image description here

the

gray

colored form when form inside td . form below out side table


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -