- support pjax usage
- check source code and google reCaptcha
- get reCaptcha sitekey and privatekey form reCaptcha admin
- import GreCaptcha and GreCaptchaValidator
- use in view
- use in model
widget('extensions.grecaptcha.GreCaptcha', array( 'model'=>$model, 'pjax'=>true, 'siteKey'=>'your site key' ) );
public $reCaptcha; public function rules() { return array( array( 'reCaptcha', 'pathto GreCaptchaValidator', 'privateKey'=>'your private key', 'on'=>'your action' ) ) }