forked from dietcake/dietcake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdietcake.php
31 lines (29 loc) · 1003 Bytes
/
dietcake.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
<?php
/**
* DietCake - Fastest MVC framework skeleton
*
* @copyright bunkyo-koki Co.,Ltd.
* @license MIT License
* @author Tatsuya Tsuruoka <https://github.com/ttsuruoka>
*/
mb_internal_encoding('UTF-8');
define('TIME_START', microtime(true));
define('DC_ACTION', 'dc_action');
define('DC_DIR', __DIR__.'/');
define('DC_CORE_DIR', DC_DIR.'core/');
define('CONFIG_DIR', APP_DIR.'config/');
define('CONTROLLERS_DIR', APP_DIR.'controllers/');
define('MODELS_DIR', APP_DIR.'models/');
define('VIEWS_DIR', APP_DIR.'views/');
define('HELPERS_DIR', APP_DIR.'helpers/');
define('TMP_DIR', APP_DIR.'tmp/');
define('LOGS_DIR', TMP_DIR.'logs/');
define('LIB_DIR', ROOT_DIR.'lib/');
define('VENDOR_DIR', ROOT_DIR.'vendor/');
require_once DC_CORE_DIR.'exception.php';
require_once DC_CORE_DIR.'inflector.php';
require_once DC_CORE_DIR.'param.php';
require_once DC_CORE_DIR.'model.php';
require_once DC_CORE_DIR.'view.php';
require_once DC_CORE_DIR.'controller.php';
require_once DC_CORE_DIR.'dispatcher.php';