Skip to main content

How I build User Registration and Form Validation Using CodeIgniter

Body

The following is an important note in building a User Registration and Form Validation Using CodeIgniter.

routes.php

There are two lines that were change/added as follows:
  1. 
  2. $route['default_controller'] = "register";
  3. $route['success'] = "register/success";

autoload.php

On line 55 we have added database and session to load automatically. This means that you do not need to call it in your controller. $autoload['libraries'] = array('database','session');

config.php

There were only two lines of code that were changed here. At line 17: $config['base_url'] = 'http://localhost

Comments

Add new comment