title: Zend_Form_Element_Captcha Not Working
body: <p>Apparently this is a common problem but I have not been able to figure out how to get a Zend Captcha Image to show up, it will create the image and it will create the hidden element but the image tag never shows up, does anyone have a solution??</p>
  
  <p>Here is the code that doesn't work:</p>
  
  <pre><code>&lt;?php
  
  class Application_Form_Contact extends Zend_Form
  {
  
      public function init()
      {
          /* Form Elements &amp; Other Definitions Here ... */
          $this-&gt;setAction('/contact/')-&gt;setMethod('post');
  
          $element = new Zend_Form_Element_Text('name');
          $element-&gt;setLabel('Name:')
                      -&gt;setRequired(true)
                      -&gt;addFilter('HtmlEntities');
          $this-&gt;addElement($element);
  
          $element = new Zend_Form_Element_Text('phone');
          $element-&gt;setLabel('Phone:')
                      -&gt;setRequired(true)
                      -&gt;addFilter('HtmlEntities');
          $this-&gt;addElement($element);
  
          $element = new Zend_Form_Element_Text('email');
          $element-&gt;setLabel('Email:')    
                      -&gt;setRequired(true)
                      -&gt;addValidator('EmailAddress', true)
                      -&gt;addFilter('StripTags')
                      -&gt;addFilter('HtmlEntities')
                      -&gt;addFilter('StringToLower')
                      -&gt;addFilter('StringTrim');
          $this-&gt;addElement($element);
  
  
          $comments = $this-&gt;createElement('textarea', 'comments')
                      -&gt;setLabel('Comments:')
                      -&gt;setRequired(true)
                      -&gt;setOptions(array('style'=&gt;'width:95%;'))
                      -&gt;addFilter('StripTags')
                      -&gt;addFilter('HtmlEntities')
                      -&gt;addFilter('StringTrim');
  
          $this-&gt;addElement($comments);
  
          $captcha= new Zend_Form_Element_Captcha('captcha', array(
                  'id'=&gt;'captchas',
                  'title'=&gt;'Security Check.',
                  'captcha' =&gt; array(
                  'captcha' =&gt; 'Image',
                  'required' =&gt; true,
                  'font'=&gt; PUBLIC_PATH . '/verdana.ttf',
                  'wordlen'=&gt;'4',
                  'width'=&gt;'80',
                  'height'=&gt;'50',
                  'ImgAlign'=&gt;'left',
                  'imgdir'=&gt; PUBLIC_PATH . '/images/captcha/',
                  'DotNoiseLevel'=&gt;'0',
                  'LineNoiseLevel'=&gt;'0', 
                  'Expiration'=&gt;'1000',
                  'fontsize'=&gt;'16'
                  )));
  
  
          $this-&gt;addElement($captcha);
          $submit = new Zend_Form_Element_Submit('submit');
          $submit-&gt;setLabel('Send'); 
          $this-&gt;addElement($submit);
  
  
  
  
      }
  
  
  }
  </code></pre>