Welcome Guest, Not a member yet? Register   Sign In
Class 'CI_Formgenerator' not found in C:\Users\mycode\system\core\C
#15

(07-11-2015, 02:10 AM)ukuser33 Wrote: Hi there,

Here are the complete files minus my db config & the user checking db validation.

This should be ready to copy/paste and simply go to index.php/register to witness the problem. It works fine on the page load, not the page post.

Thanks

Antony

Fix filename:
application/models/register.php -> application/models/Register_model.php

Fix code:
Code:
--- a/application/controllers/Register.php
+++ b/application/controllers/Register.php
@@ -48,9 +48,9 @@ class Register extends CI_Controller {
                 } else {
                         $this->load->library('formgenerator',array('register'));
                         
-                        $this->load->model('register');
+                        $this->load->model('register_model');
                         
-                        $this->register->saveUser($_POST);
+                        $this->register_model->saveUser($_POST);
 
                         echo 'Your registration has been successful. Please confirm your account in your email';
                 }       
Reply


Messages In This Thread
RE: Class 'CI_Formgenerator' not found in C:\Users\mycode\system\core\C - by kenjis - 07-11-2015, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB