Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f115c8b5

Přidáno uživatelem Filip Jani před asi 6 roky(ů)

Re #7332 přidání presenteru a vytvoření submodulů

Zobrazit rozdíly:

app/router/RouterFactory.php
17 17
	public static function createRouter()
18 18
	{
19 19
		$router = new RouteList;
20
		$router[] = new Route('<presenter>/<action>[/<id>]', 'Homepage:default');
21
		return $router;
20

  
21
        $frontRouter = new RouteList('Front');
22
        $frontRouter[] = new Route('<action>[/<id>]', 'Homepage:default');
23

  
24
        $adminRouter = new RouteList('Admin');
25
        $adminRouter[] = new Route('admin/<presenter>/<action>[/<id>]', 'Default:default');
26

  
27
        $router[] = $adminRouter;
28
        $router[] = $frontRouter;
29

  
30
        return $router;
22 31
	}
23 32
}

Také k dispozici: Unified diff