Quellcode durchsuchen

move routing out of main.cfg

master
Dom SP vor 3 Jahren
Ursprung
Commit
37f25b670c
2 geänderte Dateien mit 10 neuen und 10 gelöschten Zeilen
  1. +0
    -10
      main.cfg.sample
  2. +10
    -0
      routes.cfg

+ 0
- 10
main.cfg.sample Datei anzeigen

@@ -1,15 +1,5 @@
SITE_URL =

[routes]
GET / = Controller\Page->home
GET /home = Controller\Page->home
GET /login = Controller\User->login
GET /register = Controller\User->register
GET @page: /@page = Controller\Page->index
GET /@level1/@level2 = Controller\Page->secondLevel
GET /@level1/@level2/@level3 = Controller\Page->thirdLevel
GET /@level1/@level2/@level3/@level4 = Controller\Page->fourthLevel


[configs]
content/navi.cfg=false

+ 10
- 0
routes.cfg Datei anzeigen

@@ -0,0 +1,10 @@
[routes]
GET / = Controller\Page->home
GET /home = Controller\Page->home
GET /login = Controller\User->login
GET /register = Controller\User->register
GET @page: /@page = Controller\Page->index
GET /@level1/@level2 = Controller\Page->secondLevel
GET /@level1/@level2/@level3 = Controller\Page->thirdLevel
GET /@level1/@level2/@level3/@level4 = Controller\Page->fourthLevel

Laden…
Abbrechen
Speichern