Zend Form ReCaptcha not working
$public = Lyf_Config::get('recapctha.public');
$private = Lyf_Config::get('recapctha.private');
$recaptcha = new Zend_Service_ReCaptcha($public, $private);
$captcha = new Zend_Form_Element_Captcha('recaptcha',array(
'captcha' => 'ReCaptcha',
'captchaOptions' => array(
'captcha' => 'ReCaptcha',
'service' => $recaptcha
)));
$form->addElements(array($captcha));
$form->setDecorators(array(array('ViewScript', array('viewScript' => 'login/passwordform.phtml', 'escape' => false))));
I want to see the element like this: http://webma开发者_StackOverflow中文版sterblog.com.ua/wp-content/uploads/2009/07/recaptcha-example.gif. But instead of this element I see the simple input text element. What I doing wrong?
Thank you in advance. Sorry for my english.It was helpful:
echo $captcha->getHtml();
精彩评论