[eluser]Unknown[/eluser]
Hello I just used the Recaptcha library today and it's driving me nuts because of this error:
Fatal error: Call to undefined method Recaptcha::recaptcha_get_html() in C:\xampp\htdocs\xxxxxxxxxxx\application\controllers\user.php on line 94
this is some parts of my method in user controller
Code:
$this->load->library('recaptcha');
$this->load->library('form_validation');
$this->lang->load('recaptcha');
if ($this->form_validation->run() == FALSE):
$this->load->view('users/register', array($data, $this->recaptcha->recaptcha_get_html()));
else:
Register.php
Code:
<p>
<?= form_error('recaptcha_response_field') ?>
<?= $recaptcha ?>
</p>
I also copied to my user(view directory ) the included recaptcha. Please help I've been stuck with this one for almost 5 hours I followed the Wiki properly. I also know for sure that my public/private keys are correct.