Published On Aug. 11th 2016

The PHP Practitioner: Make a Router

Episode 16 Run Time 24:19

Download

Let's discuss routing in this episode. While, yes, you can create PHP files that correspond to the URI, this breaks down pretty quickly. So instead, we'll make a very basic router. This allows us to associate any URI endpoint with a controller.

View the source for this episode on GitHub.