PHP code example of geniv / nette-static-router

1. Go to this page and download the library: Download geniv/nette-static-router library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

geniv / nette-static-router example snippets


public static function createRouter(ILocale $locale, StaticRouter $staticRouter): IRouter
...
$router[] = $staticRouter;
$staticRouter->setDefaultParameters('Homepage', 'default', 'cs');
$staticRouter->setPaginatorVariable('visualPaginator-page');
//$staticRouter->setSecure(true);
//$staticRouter->setOneWay(true);
json
"php": ">=5.6.0",
"nette/nette": ">=2.4.0",
"geniv/nette-locale": ">=1.0.0"