I have a little problem with routing my pages. I have two controller classes: one is the default welcome class and the other one is a form class that I've written myself. By default if I type in the browser it'll display the welcome page, which is expected as I have $route['default_controller'] = "welcome"; in my routes.php file. However, if I try accessing my form class by typing in the browser or or anything after index.php ( I thought it should display an error page in this case) it'll still display the welcome page. Any ideas on what I'm doing wrong. I know if make $route['default_controller'] = "form"; it'll load the form page but I want to be able to directly access it without changing my rountes.php file.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.