/
index.php
68 lines (48 loc) · 1.16 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Created by PhpStorm.
* User: iter
* Date: 2015-06-21
* Time: 03:12
*/
define('START',(float) array_sum(explode(' ',microtime())));
/**
*
* Creating constants to folders to keep trackk
*
* */
define('ROOT', __DIR__.'/');
define('CORE', ROOT.'core/');
define('CONTROLLER', ROOT.'core/controllers');
define('LIB', ROOT.'core/lib');
define('ROOTPROJECT','base');
define('PROJECTROOT',ROOT.'project/');
define('THEMEPATH',ROOT.'theme/');
/**
* Constant PROJECT will be created later on and will be available
*/
/**
*
* Include boot.php and functions.php in core folder to initiate some functions
*
*/
require_once(CORE . 'boot/boot.php');
require_once(CORE . 'boot/functions.php');
require_once(CORE . 'iteraxcontroller.php');
/**
*
* Start the iterax core controller
*
* Set the project,controller,method and args
*
* Include the config file from project folder
*
* everything will be handled through iteraxcontroller from this point
*
*/
$iterax = iteraxcontroller::Instance();
$iterax->ReadRequest();
$iterax->IncludeConfigFiles();
$iterax->Session('init');
$iterax->Include_Request_Controller('init');
$iterax->RenderTheme('render');