-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
48 lines (37 loc) · 1.29 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
<?php
/**
* This is a crackerjack MVC PHP framework used just to add some organization to small and medium projects, it handles
* URI segments addresses and implements the MVC object oriented pattern, capable of manage
* multiple controllers, models and views with a clear file organization
*
*@author Mangtomas Ungasis <octo.git.js@gmail.com>
*@copyright Copyright 2012(c) Mangtomas Ungasis
*/
/*
*Error reporting
E_ERROR | E_WARNING | E_PARSE
*/
error_reporting(E_ERROR | E_WARNING | E_PARSE);
/*
* Application path - Directory for your controllers, models, views, helpers etc.
*
*/
$application_path = 'application';
/*
* System path - The core of MVC framework that runs your application
*
*/
$system_path = 'system';
//Constant define
define('DS', DIRECTORY_SEPARATOR);
define('ROOT',realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR);
define('CORE', $system_path.DS.'core'.DS);
define('APPS', $application_path.DS);
define('EXT','.php');
define('VIEWS',$application_path.DS.'views'.DS);
define('TEMPLATES',$application_path.DS.'views'.DS.'templates'.DS);
define('SYSHELPER',$system_path.DS.'helpers'.DS);
define('SYSLIBS',$system_path.DS.'libraries'.DS);
define('LIBS', $application_path.DS.'libraries'.DS);
//Start the application by the loading of core system
require_once CORE.'core'.EXT;