An essential part of any modern framework is processing requests from the web browser and directing them towards the corresponding server side controller logic. This routing strategy can be used for generic common case scenarios as well as complicated custom ones.
A common setup usually involves creating a default routing pattern that will handle the bulk of requests and then defining additional specific routes to handle unique cases. By following this pattern, we can quickly set up an application and then begin to customize it one part at a time. Then sometimes while processing a request it becomes apparent that it is necessary to have the logic flow among a progression of controllers as certain exceptional cases are discovered. This feature allows for a clean and smooth logic flow while eliminating additional code that would cause your code to violate the DRY (Don't Repeat Yourself) programming principle.
Then we will show you how to use key-value parameters in your URLs to...