title: Customize zend_form Captcha output?
body: <p><strong>I'm using captcha in my zend_form.</strong></p>
  
  <pre><code>$captcha_element = new Zend_Form_Element_Captcha(
      'captcha',
      array('label' =&gt; 'Write the chars to the field',
          'captcha' =&gt; array(
              'captcha' =&gt; 'Image',
              'wordLen' =&gt; 6,
              'timeout' =&gt; 300,
              'font' =&gt; DOC_ROOT . '/data/fonts/Vera.ttf',
              'imgDir' =&gt; $imagedir,
              'imgUrl' =&gt; $umageurl
          )
      )
  );
  </code></pre>
  
  <p><strong>This generates:</strong></p>
  
  <pre><code>&lt;dt id="captcha-input-label"&gt;
      &lt;label for="captcha-input" class="required"&gt;Write the chars to the field&lt;/label&gt;
  &lt;/dt&gt;
  
  &lt;dd id="captcha-element"&gt;
      &lt;img width="200" height="50" alt="" src="http://sitename.com/captcha/09dd951939c6cdf7fa28f2b7d322ea95.png"&gt;
      &lt;input type="hidden" name="captcha[id]" value="09dd951939c6cdf7fa28f2b7d322ea95" id="captcha-id"&gt;
      &lt;input type="text" name="captcha[input]" id="captcha-input" value=""&gt;
  &lt;/dd&gt;
  </code></pre>
  
  <p><strong>However. - I need following instead (captcha elements are wrapped into some tags individually):</strong></p>
  
  <pre><code>&lt;dt id="captcha-input-label"&gt;
      &lt;label for="captcha-input" class="required"&gt;Write the chars to the field&lt;/label&gt;
  &lt;/dt&gt;
  
  &lt;dd id="captcha-element"&gt;
      &lt;div&gt;&lt;span&gt;
          &lt;input type="text" name="captcha[input]" id="captcha-input" value=""&gt;
      &lt;/span&gt;&lt;/div&gt;
      &lt;div&gt;&lt;span&gt;
          &lt;img width="200" height="50" alt="" src="http://sitename.com/captcha/09dd951939c6cdf7fa28f2b7d322ea95.png"&gt;
          &lt;input type="hidden" name="captcha[id]" value="09dd951939c6cdf7fa28f2b7d322ea95" id="captcha-id"&gt;
      &lt;/span&gt;&lt;/div&gt;
  &lt;/dd&gt;
  </code></pre>
  
  <p><strong>I can't figure out how would I do this. Can I accomplish this by using some custom decorators? or woud that involve custom captcha ?</strong></p>