2009年4月27日星期一

Re: [fw-core] Zend_Form_Element_Captcha doesn't works as expected !

2009/4/27 SŽébastien Cramatte <scramatte@zensoluciones.com>
$elt = new Zend_Form_Element_Captcha('captcha', array(
       'label' => "are_you_human",
       'captcha' => array(
       'captcha' => 'Image',
       'wordLen' => 6,
       'timeout' => 300,
       'font' => './share/fonts/verdana.ttf',
       'imgDir' => './share/img/captchas/',
       'imgUrl' => '/share/img/captchas/',
       )
      ));

 $this->addElement($elt);
 
Maybe there is some particular configuration of decorators that cause this, try with a Dumb captcha and fewer option to see if you get the right inputs. Zend_Form_Element_Captcha uses an internal decorator so if your forms play with decorators it can render in wrong html.


--
Giorgio Sironi
Piccolo Principe & Ossigeno Scripter
http://ossigeno.sourceforge.net

没有评论: