mrjgreen / phroute

A super fast PHP router, with route parameters, restful controllers, filters and reverse routing.
Other
713 stars 97 forks source link

Controllers default action not working with more then one method #57

Open StephanAtG2 opened 8 years ago

StephanAtG2 commented 8 years ago

Using getIndex and postIndex in the same controller only allowed the first declared function to work

Implemented a dirty solution to catch HttpMethodNotAllowedException and look for the other method in the routeMap. If I cannot find the route it just throws the exception again.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.007%) to 99.654% when pulling ae1f39ae03fc15c7cad94caf1e73222c48e7575b on StephanAtG2:master into 5915619da8a55c1a0177e1b034bc3a001cddffb7 on mrjgreen:master.