Created
October 8, 2011 00:21
-
-
Save evert/1271672 to your computer and use it in GitHub Desktop.
My router idea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$router = new \My\Router(); | |
$router->add('GET /blog/(?P<postId>[\d]+)', function($postId) { | |
return new \My\Blog\Controller($postId); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment