-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.php
39 lines (31 loc) · 1.48 KB
/
init.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
<?php
/**
* Load Angie resources and prepare the environment
*
* This file will include all system resources and make sure that they are initialized properly. There is no external
* configuration required for the framework process.
*
* @package Angie
* @author Ilija Studen <[email protected]>
*/
define('ANGIE_PATH', dirname(__FILE__));
define('ANGIE_VERSION', '0.1');
set_include_path(''); // don't rely on include path
require_once ANGIE_PATH . '/core/constants.php';
require_once ANGIE_PATH . '/core/functions/general.php';
require_once ANGIE_PATH . '/core/functions/files.php';
require_once ANGIE_PATH . '/core/functions/web.php';
require_once ANGIE_PATH . '/core/functions/utf.php';
require_once ANGIE_PATH . '/core/functions/utils.php';
require_once ANGIE_PATH . '/Angie.class.php';
require_once ANGIE_PATH . '/core/Angie_Error.class.php';
require_once ANGIE_PATH . '/engine/Angie_Engine.class.php';
require_once ANGIE_PATH . '/template/Angie_TemplateEngine.class.php';
require_once ANGIE_PATH . '/controller/Angie_Controller.class.php';
require_once ANGIE_PATH . '/controller/Angie_Request.class.php';
require_once ANGIE_PATH . '/datetime/Angie_DateTime.class.php';
require_once ANGIE_PATH . '/toys/autoloader/Angie_AutoLoader.class.php';
require_once ANGIE_PATH . '/toys/inflector/Angie_Inflector.class.php';
Angie_DateTime::init(); // reset environment timezone and use GMT from now one
define('ANGIE_INITED', true);
?>