-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
29 lines (23 loc) · 939 Bytes
/
bootstrap.php
File metadata and controls
29 lines (23 loc) · 939 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
29
<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', '0');
ini_set('log_errors', '1');
define('BASEPATH', dirname(__FILE__).'/');
define('MINIMVCPATH', BASEPATH . 'lib/MiniMVC/');
define('APPPATH', BASEPATH . 'app/');
define('MODULEPATH', BASEPATH . 'module/');
define('VIEWPATH', BASEPATH . 'view/');
define('THEMEPATH', BASEPATH . 'theme/');
define('WEBPATH', BASEPATH . 'web/');
define('DATAPATH', BASEPATH . 'data/');
define('CACHEPATH', BASEPATH . 'cache/');
include MINIMVCPATH.'MiniMVC/Autoload.php';
include MINIMVCPATH.'MiniMVC/Registry.php';
include MINIMVCPATH.'MiniMVC/Settings.php';
include MINIMVCPATH.'MiniMVC/Cache.php';
spl_autoload_register(array('MiniMVC_Autoload', 'autoload'));
ini_set('session.use_cookies', '1');
ini_set('session.use_only_cookies', '0'); //allow session per POST/GET, useful for API requests
ini_set('session.use_trans_sid', '0');
session_name('session_token');
session_start();