Koen Punt

Results 284 comments of Koen Punt

I believe `setBasePath('/my-base')` is the correct way. We could just strip the right `/` from the path when setting it.

If you mean redirected by "re-routed", then you'll have to implement that yourself. Something like this: ```php $router->match('GET', '/pages', function() { // /pages redirects to /pages/about header('Location: /pages/about'); exit; });...

You probably should not include the domain name in the base path.

`getNamedRoutes` would be the way to go, but why exactly do the named routes have to be accessible? Can you give an example?

That's interesting. Can you create a PR and then add a test for this behavior?

A bit late to the party. But, I like the functionality, although I don't think this is really the responsibility of the router, and I also think this is perfectly...

We could add it as an extra argument of the `map` function as well

I have these methods in my own implementation, which extends of AltoRouter, but I noticed I rarely use them. But I'm not opposed to this addition. Only one thought, is...

`call_user_func_array` will have more overhead than the solution proposed in this PR

@dannyvankooten I finalized this. Please review, but do not merge yet, because I want to cleanup my commits first.