sumardi's site
Change better self, to change the wold

Archive for the ‘codeigniter’ Category

29
Oct

Step by Step implementasi re-CAPTCHA di CodeIgniter

Posted in codeigniter  by ardi271

seteleh sekian lama nanya2 mbah googel, akhirnya ketemua jg captcha yg keren di CI..siapa lagi klo bukan re-CAPTCHA…truss gimana tuh implementasiin di CI…nah ini dia….silahkan di simak gan…

  1. Daftar dulu disini http://recaptcha.net/
  2. Download librarry nya disini : http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest
  3. Rename file recaptchalib.php jadi recaptcha_helper.php , truss… taruh di folder helpers (/system/application/helpers)
  4. Tambahkan function berikut di file recaptcha_helper.php : function recaptcha()
    {
    $CI =& get_instance();
    $CI->config->load('recaptcha');
    $public_key = $CI->config->item('recaptcha_public_key');
    $message = isset($CI->validation->recaptcha_error)
    ? $CI->validation->recaptcha_error : '';
    return recaptcha_get_html($public_key, $message);
    }
  5. Read the rest of this entry »

Tags: , ,