CakePHP plugin for Ayah Captcha
Author: Felipe Elias Balarin (felipe@febinfo.com.br)
Quick start guide.
-
Get Ayah key. http://portal.areyouahuman.com/signup
-
Setting. Download ayah.php. And put it in ayah_plugin/vendors. http://portal.areyouahuman.com/downloads/ayah_php_bundle_1.0.2.zip
-
Config. Insert keys in ayha_plugin/config/ayah_config.php . define( 'AYAH_PUBLISHER_KEY', "PUT_YOU_PUBLISHER_KEY_HERE"); define( 'AYAH_SCORING_KEY', 'PUT_YOU_SCORING_KEY_HERE');
-
Controller. public $components = array('Ayah.Ayah'); public $helpers = array('Ayah.Ayah');
-
View. Inside
tags: echo $this->Ayah->show(); or (if the model you want to validate is different than the first one in controller) echo $this->Ayah->show(array('model' => 'Contact'));