I'm trying to implement URL routing into my web app but struggling, i've followed the mvc structure so urls are /controller/class
i want to be able to change '/profile/edit_profile' to '/edit-profile'.
I've done something similar in CodeIgniter in routes.php i would add
$route['edit-profile'] = 'profile/edit_profile';
but can't think of the logical way to code this