-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.php
28 lines (24 loc) · 794 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
|--------------------------------------------------------------------------
| Leaf MVC
|--------------------------------------------------------------------------
|
| Leaf MVC is a minimal but powerful PHP MVC framework based on
| the Leaf PHP framework.
|
| This file allows us to run the app from the root of the project.
| This provides a convenient way to test your Leaf MVC app
| without having installed a "real" web server software here.
|
| It also allows you to directly load up your application from
| the root file for quickly hosting on shared hosting platforms.
|
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
if ($uri !== '/' && file_exists(__DIR__ . '/public' . $uri)) {
return false;
}
require_once __DIR__ . '/public/index.php';