I'm currently creating my own custom MVC framework in PHP that uses the MVC URL standard: example.com/{controller}/{action}/{id}
This works fine, however, one of my controllers called "books" does not need the action in the URL: example.com/{controller}/{id}
How can I parse index from URL routing to the id in php mvc?
Example: localhost/books/1 instead of localhost/books/index/1
but I still want to access the url localhost/games/puzzle/1