-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
42 lines (31 loc) · 1 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
<?php
spl_autoload_register('autoLoader');
require_once('Routes.php');
function autoLoader($fileName) {
require_once('./Components/header.php');
if (file_exists('./Classes/'.$fileName.'.php')) {
require_once './Classes/'.$fileName.'.php';
}
if (file_exists('./Controllers/'.$fileName.'.php')) {
require_once './Controllers/'.$fileName.'.php';
}
if (file_exists('./Models/'.$fileName.'.php')) {
require_once './Models/'.$fileName.'.php';
}
if (file_exists('./Views/'.$fileName.'.php')) {
require_once './Views/'.$fileName.'.php';
}
}
require_once('./Components/footer.php');
?>
<?php
// Insert function object
$objAddCase = new AddCaseControl();
$objAddCase->acceptAddCase();
// Edit function object
$objEditCase = new EditCaseControl();
$objEditCase->acceptEditCase();
// Delete function object
$objDelete = new EditCaseControl();
$objDelete->acceptDeleteCase();
?>