我目前在我的网站上有一个使用Zend的Recaptcha表单。我需要在这里更改以实现Recaptcha2?
$reCaptcha = new Zend_Service_ReCaptcha($config->recaptcha->site_key, $config->recaptcha->secret_key);
$captcha = new Zend_Form_Element_Captcha('captcha',
array(
'captcha' => 'ReCaptcha',
'captchaOptions' => array(
'captcha' => 'ReCaptcha',
'service' => $reCaptcha,
'messages' => array(
'badCaptcha' => $translator->translate('Form-Captcha-InvalidCaptchaValue')
),
'theme' => 'white'
),
'ignore' => true,
)
);
Thanksr