We want to redirect the user to the signup
controller rather than the default CodeIgniter welcome
controller. To do this, we will need to amend the default controller setting in the routes.php
file.
Open the config/routes.php
file to edit and find the following lines (near the bottom of the file):
$route['default_controller'] = "welcome"; $route['404_override'] = '';
First, we need to change the default controller. Initially, in a CodeIgniter application the default controller is set to welcome
. However, we don't need this, instead we want the default controller to be signup
. So, find the following line:
$route['default_controller'] = "welcome";
Replace the preceding line with the following:
$route['default_controller'] = "signup"; $route['404_override'] = '';