├── index.php
└── config
├── constants.php
├── db.php
└── baseConstants.php
/index.php:
--------------------------------------------------------------------------------
1 |
' . VIEWS . '
' . MODELS . '
' . RESOURCES;
20 |
21 |
--------------------------------------------------------------------------------
/config/baseConstants.php:
--------------------------------------------------------------------------------
1 | localhost;
17 | // $uri[0] returns root folder without filename
18 | $uri = "http://$_SERVER[HTTP_HOST]" . "/" . $uri[0];
19 | } else {
20 | $uri = null;
21 | };
22 |
23 | define("BASE_URL", $uri);
24 |
25 |
--------------------------------------------------------------------------------