Exemple #1
0
 /**
  * @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;
 }
Exemple #2
0
 /**
  * @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;
 }