Pārlūkot izejas kodu

move routing out of main.cfg

master
Dom SP pirms 3 gadiem
vecāks
revīzija
37f25b670c
2 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. +0
    -10
      main.cfg.sample
  2. +10
    -0
      routes.cfg

+ 0
- 10
main.cfg.sample Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt