/** * @param string * @return \Nette\Application\IRouter */ public static function create($locale, $locales) { $router = new RouteList(); $router[] = $module = new RouteList('Install'); $module[] = new Route(Lang::locale($locale, $locales) . 'install/[<presenter>/]<action>/[<id>/]', 'Install:default'); return $router; }
/** * @param string * @return \Nette\Application\IRouter */ public static function create($locale, $locales) { $router = new RouteList(); $router[] = $module = new RouteList('Admin'); $module[] = new Route(Lang::locale($locale, $locales) . 'admin/<presenter>/<action>/[<id>/]', 'Admin:default'); return $router; }