-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
36 lines (36 loc) · 1.47 KB
/
index.php
File metadata and controls
36 lines (36 loc) · 1.47 KB
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
<?php
/*********************************
MOJO MVC FRAMEWORK
VERSION : 1.0 BETA
DEVELOPED BY : KEVAL THACKER
WEBSITE : http://adroittechnosys.com/
***********/
// DIRECTORY_SEPARATOR adds a slash to the end of the path
define('ROOT', dirname(__DIR__) . DIRECTORY_SEPARATOR."framework". DIRECTORY_SEPARATOR);
// set a constant that holds the project's "config" folde, like.
define('CONFIG', ROOT . 'config' . DIRECTORY_SEPARATOR);
// set a constant that holds the project's "lib" folder
define('LIB', ROOT . 'lib' . DIRECTORY_SEPARATOR);
// set a constant that holds the project's "assets" folder
define('ASSETS', ROOT . 'assets' . DIRECTORY_SEPARATOR);
// set a constant that holds the project's "current Active Page"
define ('FILE_NAME', basename(strtok($_SERVER["REQUEST_URI"],'?')));
define ('FILE_PATH', str_replace("/framework/","",strtok($_SERVER["REQUEST_URI"],'?')));
/**************************************
***************************************
***************************************
LOAD GENERAL SETTING CLASS
***************************************
***************************************
***/
include(CONFIG."general.php");
/**************************************
***************************************
***************************************
LOAD DATABASE SETTING CLASS
***************************************
***************************************
***/
include(CONFIG."database.php");
// load initialize application
include LIB."init.php";