How to use Google reCaptcha with Cakephp To use google reCaptcha with php you can read How to use google recaptcha with PHP . In this tutorial we learn how to use google recaptcha with cakepphp 3.x we need two keys that provide by google .you can get your recaptcha keys from google developer account. 1.first we need to call google recaptcha js so open your projectFolder/src/template/layout/default.ctp or you can call it into your header.ctp <?= $this->Html->script('https://www.google.com/recaptcha/api.js') ?> 2. Now we have to save keys into our project that we can access from anywhere so copy this code and paste it into YourProject/Config/bootstrap.php Configure::write('google_recatpcha_settings', array( 'site_key'=>'SITEKEY', 'secret_key'=>'SECRETKEY' )); 3.Now open your appConteoller (projectFolder/src/Controller/AppController) Add these code into initialize function of appController public functi...
PHP,WORDPRESS,CAKEPHP,JQUERY,PHP TUTORIALS,CAKEPHP TUTORIALS,JQUERY CODES, CSS CODES, HTML CODES,EXPO, React, React Native, Angular,OOPS ,PHP INTERVIEW QUESTIONS @shubham715