Created
March 23, 2012 13:01
-
-
Save robap/2170451 to your computer and use it in GitHub Desktop.
alternative php-router dispatcher
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 | |
class myDispatcher extends Dispatcher | |
{ | |
protected function dispatchController($class, $method, $args, $context = null) | |
{ | |
$obj = new $class($context); | |
return call_user_func(array($obj, $method), array_values($args)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment