-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
38 lines (29 loc) · 1.02 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
<?php
# === constants
# ==================================================
define("_APP", dirname(__FILE__) . '/app');
# === PHPMailer
# ==================================================
//require 'vendor/phpmailer/phpmailer/PHPMailerAutoload.php';
# === Slim Framework v2
# ==================================================
require 'vendor/autoload.php';
$app = new \Slim\Slim();
//$mail = new PHPMailer;
# === database conection
# ==================================================
require_once _APP . '/config/database.php';
# === models
# ==================================================
require_once _APP . "/models/ModelIrrigaNET.php";
# === dao
# ==================================================
require_once _APP . "/dao/DAOIrrigaNET.php";
# === helpers
# ==================================================
require_once _APP . '/helpers/appHelpers.php';
# === controllers
# ==================================================
require_once _APP . "/controllers/ControllerIrrigaNET.php";
# === run slim
$app->run();