-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
26 lines (22 loc) · 750 Bytes
/
index.php
File metadata and controls
26 lines (22 loc) · 750 Bytes
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
<?php
#PARA EVITAR ERRORES AL TRABAJAR EN WINDOWS Y LINUX
define('DS', DIRECTORY_SEPARATOR);
#PATH DE LA RAIZ DE NUESTRO FRAMEWORK
define('ROOT', realpath(dirname(__FILE__)) . DS);
#PATH DE NUESTRA APP
define('APP_PATH', ROOT . 'app' . DS);
#REQUERIR TODOS LOS FICHEROS QUE VAMOS A NECESITAR:
require_once APP_PATH . 'Config.php';
require_once APP_PATH . 'Request.php';
require_once APP_PATH . 'Bootstrap.php';
require_once APP_PATH . 'Controller.php';
require_once APP_PATH . 'Model.php';
require_once APP_PATH . 'View.php';
//require_once APP_PATH . 'Registro.php';
require_once APP_PATH . 'Database.php';
#LLAMAR A BOOTSTRAP PARA INICIAR APLICACION
try {
Bootstrap::run(new Request);
} catch (Exception $ex) {
echo $ex->getMessage();
}