October 2012
Beginner to intermediate
500 pages
10h 29m
English
![]()
Routing is what happens when an application determines which controllers and actions are executed based on the URL requested. Simply put, it is how the framework gets from http://localhost/users/list.html to the Users controller and the list() action.
- We need to understand what routes are and how they work.
- We need to build the different kinds of routes.
- We need to build the
Routerclass that will manage these routes.
Some routes can be inferred from the structure of the application. If the Router class sees that you have an Articles controller with a search() method, if can sometimes assume that the ...