Skip to content

Instantly share code, notes, and snippets.

@RobertMatkulcik
Created September 11, 2020 12:46
Show Gist options
  • Save RobertMatkulcik/cf6634bb0805c3af11b1c0de1d36af71 to your computer and use it in GitHub Desktop.
Save RobertMatkulcik/cf6634bb0805c3af11b1c0de1d36af71 to your computer and use it in GitHub Desktop.
RouterFactory.php
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