• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ReCaptcha library and undefined functions

#1
[eluser]Unknown[/eluser]
Hi,

I've set up a simple site using the 'static pages' tutorial format in the user guide.
It all works as it should.

I would like to implement ReCaptcha using the following library.
http://codeigniter.com/wiki/ReCAPTCHA

I've added all the files in the correct directories, using 'application/views/pages' to place 'recaptcha_demo.php' and 'recaptcha.php'
The pages load ok, but with undefined functions.

'Fatal error: Call to undefined function form_open() in /path/to/application/views/pages/recaptcha_demo.php on line 7'

So I guess there is a path to the helper file issue which I have not yet solved.
Could someone tell me where I have to look to solve this, please?

(I've also set up a vanilla install which loads 'recaptcha_demo.php' fine, so I assume it's to do with the slightly altered file structure in the 'static pages' tut.)

Thanks for looking.

#2
[eluser]Unknown[/eluser]
You have to include in your controller
$this->load->helper('form')

#3
[eluser]Dhanapal MCA[/eluser]
[quote author="Antonio Cruz" date="1328384519"]You have to include in your controller
$this->load->helper('form')[/quote]

welcome

#4
[eluser]Dhanapal MCA[/eluser]
[quote author="richhorn" date="1327510593"]Hi,

I've set up a simple site using the 'static pages' tutorial format in the user guide.
It all works as it should.

I would like to implement ReCaptcha using the following library.
http://codeigniter.com/wiki/ReCAPTCHA

I've added all the files in the correct directories, using 'application/views/pages' to place 'recaptcha_demo.php' and 'recaptcha.php'
The pages load ok, but with undefined functions.

'Fatal error: Call to undefined function form_open() in /path/to/application/views/pages/recaptcha_demo.php on line 7'

So I guess there is a path to the helper file issue which I have not yet solved.
Could someone tell me where I have to look to solve this, please?

(I've also set up a vanilla install which loads 'recaptcha_demo.php' fine, so I assume it's to do with the slightly altered file structure in the 'static pages' tut.)

Thanks for looking.[/quote]



yes nice to meet you

#5
[eluser]Unknown[/eluser]
[quote author="Antonio Cruz" date="1328384519"]You have to include in your controller
$this->load->helper('form')[/quote]

Thanks for your post.
This is already included in the controller supplied with the library.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.