I've been building my own MVC framework inspired in Codeigniter, it's a very basic one, and I got the clue of everything I needed, the only thing annoys me:
Maybe because I wasn't able to reproduce it quickly but instead of having an $route
array in the format $route['controller_name'] = 'expression'
, I made it to parse the URI parameters, as the first one is the controller, the script would look for the file which is named after the controller.
Is this a bad practice? the routes have any other benefit beside being able to call one controller through different URL's or change its name?