-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
30 lines (23 loc) · 915 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
29
30
<?php
ini_set('display_errors', 1);
error_reporting('E_ALL');
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
include("application/core/View.php");
include("application/core/Model.php");
include("application/core/Controller.php");
include("application/core/FrontController.php");
function __autoload($class){
if(file_exists("application/controllers/".$class.".php")){
require_once("application/controllers/".$class.".php");
}else if(file_exists("application/models/".$class.".php")){
require_once("application/models/".$class.".php");
}else if(file_exists("application/helpers/".$class.".php")){
require_once("application/helpers/".$class.".php");
}
}
$frontController = FrontController::getInstance();
$frontController->route();