
Creating a simple REST application with Silex part 3.
In part 1 you installed Silex and setup 2 routes, /
and /{stockcode}
.
In part 2 you added a POST and a DELETE route. In part 3 we are going to
assume a few months have passed and you now have tens, maybe hundreds, of routes.
The problem with having many routes is that we end up with a really big and unwieldy index.php
file. Finding the correct route to fix can take a while.
I will be showing you two possible way to manage your routes.
read full article