Created
September 21, 2014 19:42
-
-
Save jsifalda/6f16b0111a134041db85 to your computer and use it in GitHub Desktop.
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 factory. | |
*/ | |
class RouterFactory | |
{ | |
/** | |
* @return \Nette\Application\IRouter | |
*/ | |
public function createRouter() | |
{ | |
$router = new Nette\Application\Routers\RouteList(); | |
$router[] = new Nette\Application\Routers\Route('<presenter>/<action>[/<id>]', 'Homepage:default'); | |
return $router; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment