forked from fmassaretto/hxphp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (21 loc) · 677 Bytes
/
Copy pathindex.php
File metadata and controls
28 lines (21 loc) · 677 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
27
28
<?php
ob_start();
ini_set('display_errors', 1);
date_default_timezone_set('America/Sao_Paulo');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT_PATH', dirname(__FILE__) . DS);
define('APP_PATH', 'app' . DS);
/**
* Verifica se o autoload do Composer está configurado
*/
$composer_autoload = 'vendor' . DS . 'autoload.php';
if ( ! file_exists($composer_autoload)) {
die('Execute o comando: composer install');
}
require_once($composer_autoload);
//Start da sessão
HXPHP\System\Services\StartSession::sec_session_start();
//Inicio da aplicação
$app = new HXPHP\System\App(require_once APP_PATH . 'config.php');
$app->ActiveRecord();
$app->run();