I am building a blog application. I have a blog controller that is the main. In a sidebar I loaded “Ion Auth Library” login template from views. But it returns this:
Fatal error: Call to undefined function form_open() in C:\xampp\htdocs \code\application \views\auth\login.php on line 9
So, how do I load auth.php controller inside blog.php controller? Should I copy and paster auth controller inside blog controller, or is there another way to do it?
Thanks guys!
It looks like you haven’t loaded the form helper. In your constructor for the blog controller put this:
You can read up on how the function form_open() and the form helper work here:
http://codeigniter.com/user_guide/helpers/form_helper.html