Episode 4 - Creating Own PHP Framework Using Symfony2 Components
Andrey Esaulov(23:14)
sourced from Object Oriented PHP
Andrey Esaulov(23:14)
sourced from Object Oriented PHP
In this episode we’ll use the Symfony2 Component Routing, which will take care of mapping the URLs to the file paths. One of the advantages of the Routing component is the ability to create dynamical paths. To convert something like /hello?name=Andrey into /name/Andrey we’ll take advantage of RouteCollection, URLMatcher and RequestConext – the classes bundled with the Routing component.