ReCaptcha library and undefined functions - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: ReCaptcha library and undefined functions (/showthread.php?tid=48699) |
ReCaptcha library and undefined functions - El Forum - 01-25-2012 [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. ReCaptcha library and undefined functions - El Forum - 02-04-2012 [eluser]Unknown[/eluser] You have to include in your controller $this->load->helper('form') ReCaptcha library and undefined functions - El Forum - 02-05-2012 [eluser]Dhanapal MCA[/eluser] [quote author="Antonio Cruz" date="1328384519"]You have to include in your controller $this->load->helper('form')[/quote] welcome ReCaptcha library and undefined functions - El Forum - 02-05-2012 [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 ReCaptcha library and undefined functions - El Forum - 02-06-2012 [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. |