(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';
}