Since I use recaptcha in my recent project,
I met problem with pjax plugin.
So I made this extension to reduce someone time.
use in view
widget('extensions.grecaptcha.GreCaptcha',
array(
'model'=>$model,
'pjax'=>true,
'siteKey'=>'your site key'
)
);
use in model
public $reCaptcha;
public function rules() {
return array(
array(
'reCaptcha',
'pathto GreCaptchaValidator',
'privateKey'=>'your private key',
'on'=>'your action'
)
)
}
Github: github.com/sc0Vu/yii-grecaptcha
Thanks!