Created
September 11, 2020 12:46
-
-
Save RobertMatkulcik/cf6634bb0805c3af11b1c0de1d36af71 to your computer and use it in GitHub Desktop.
RouterFactory.php
This file contains hidden or 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
public function createRouter() | |
{ | |
$router = new RouteList(); | |
$router[] = new Route('TYPO3/index.php', array( | |
'presenter' => 'Page', | |
'action' => 'view' | |
)); | |
$router[] = new Route('<pageUri .*>[/<divider detail>/<specialUri .+>][/strana-<page>]/', array( | |
'presenter' => 'Page', | |
'action' => 'default', | |
'pageUri' => 'homepage', | |
'page' => 1, | |
)); | |
return $router; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment