i'm just getting started at codeigniter, i want to hide controller name from URL with same routes setup.
i have 3 controllers which are students, staff, teachers having same function called home, this won't work obviously
$route['home'] = 'students/home';
$route['home'] = 'staff/home';
is there any way to accomplish this? i have session data using codeigniter session class containing user type so i tried something like this
session_start()
$route['home'] = $_SESSION['user_type'].'/home';
but i cant get the session data, maybe its using codeigniter session class?? so, how can i get the data? or is there other solution?