Zend_Form_Element_Captcha doesn’t display image

does not display html code on the image.

Form code:

$captcha = new Zend_Form_Element_Captcha('captcha', array(
        'label' => " :",
        'captcha' => array(
            'captcha'   => 'Image', //  CAPTCHA
            'wordLen'   => 4,       //   
            'width'     => 260,     //  
            'timeout'   => 120,     //     
            'expiration'=> 30,     //      
            'font'      => ROOT_PATH . '/images/fonts/comicbd.ttf', //   
            'imgDir'    => ROOT_PATH . '/images/captcha/', //   .
            'imgUrl'    => '/images/captcha/', //    
            'gcFreq'    => 5        //    
        ),
    ));

HTML output code:

<tr><td id="captcha-input-label"><label for="captcha-input" class="required"> :</label></td>
<td>
<input type="hidden" name="captcha[id]" value="05ea6b5d7b6f60bd57a4e5e031496ead" id="captcha-id">
<input type="text" name="captcha[input]" id="captcha-input" value=""></td></tr>

Images are created but no link to it (img) appears. Tell me what’s the problem?


Answer 1, authority 100%

Solution:

       'decorators' => array(
            array('Captcha'),
            array('Label'),
            array('Errors'),
            )