Skip to content

sc0Vu/yii-grecaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii-grecaptcha usage instructions StyleCI

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

About

google recaptcha2 for yii 1.16

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages