Sfoglia il codice sorgente

move routing out of main.cfg

master
Dom SP 3 anni fa
parent
commit
37f25b670c
2 ha cambiato i file con 10 aggiunte e 10 eliminazioni
  1. +0
    -10
      main.cfg.sample
  2. +10
    -0
      routes.cfg

+ 0
- 10
main.cfg.sample Vedi File

@@ -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 Vedi File

@@ -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

Loading…
Annulla
Salva