title: Three columns table Form in Zend Framework
body: <p>I have some problem to create "three columns table" form in Zend Framework:</p>
  
  <p>I already have Zend Form  decorated by tow columns table: </p>
  
  <p>Table have two column, first one is for label and second one is for Zend_Form_Element, that works well, but,
  I want to add third column and put there small image - question mark, where I will setup javascript. </p>
  
  <p>How to set decoration for that?</p>
  
  <p>Current decoration for two columns table is:</p>
  
  <pre><code>&lt;?php
  class Application_Form_Login extends Zend_Form {
  
  public function init() {
  
      // create decoration for form's elements
      $elementDecoration = array(
          'ViewHelper',
          'Description',
          'Errors',
          array(array('data'=&gt;'HtmlTag'), array('tag' =&gt; 'td', 'valign' =&gt; 'TOP')),
          array('Label', array('tag' =&gt; 'td')),
          array('Errors'),
          array(array('row'=&gt;'HtmlTag'),array('tag'=&gt;'tr'))
      );
      $buttonDecoration = array(
          'ViewHelper',
          array(array('data'  =&gt; 'HtmlTag'), array('tag' =&gt; 'td')),
          array(array('label' =&gt; 'HtmlTag'), array('tag' =&gt; 'td', 'placement' =&gt; 'prepend')),
          array(array('row'   =&gt; 'HtmlTag'), array('tag' =&gt; 'tr')),
      );
      $formDecoration = array(
          'FormElements',
          array(array('data'=&gt;'HtmlTag'), array('tag'=&gt;'table', 'class'=&gt;'forms')),
          'Form'
      );
  
      // create form elements
      $username = new Zend_Form_Element_Text("username");
      $username-&gt;setLabel('Username: ')
               -&gt;setDecorators($elementDecoration);
  
      $password = new Zend_Form_Element_Password("password");
      $password-&gt;setLabel('Password: ')
               -&gt;setDecorators($elementDecoration);
  
      $submit = new Zend_Form_Element_Submit('Login');
      $submit-&gt;setLabel('LOGIN')
             -&gt;setDecorators($buttonDecoration);
  
      $this-&gt;setDecorators($formDecoration);
  
      // set created form elements
      $this-&gt;setAction('')
          -&gt;setMethod('post')
          -&gt;addElement($username)
          -&gt;addElement($password)
          -&gt;addElement($submit);
      }
  
     }
  </code></pre>