forked from towry-archived/zmjdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.php
59 lines (44 loc) · 1.49 KB
/
configure.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
<?php
/*=>--------------------------------------------
* Enable debug mode
*---------------------------------------------*/
config('dispatch.debug', true);
/*=>--------------------------------------------
* The current version
*---------------------------------------------*/
config('app.version', 'v2');
/*=>--------------------------------------------
* Database config
* This must comes first
*----------------------------------------------*/
include_once __DIR__ . '/config/database.config.php';
/*=>---------------------------------------------
* ACL
*----------------------------------------------*/
include_once __DIR__ . '/config/acl.config.php';
/*=>---------------------------------------------
* Templates
*---------------------------------------------*/
config('dispatch.templates', BASEPATH . '/templates');
config('dispatch.layout', '/layouts/layout');
/*=>--------------------------------------------
* Controller config
*---------------------------------------------*/
config('dispatch.views', array(
'path' => __DIR__ . '/lib/views'
));
config('dispatch.api', array(
'path' => __DIR__ . '/lib/api'
));
/*=>--------------------------------------------
* i18n
*---------------------------------------------*/
config('dispatch.i18n', array(
'lang' => 'en',
'path' => BASEPATH . '/i18n'
));
config('dispatch.lang', 'zh-cn');
/*=>---------------------------------------------
* Cookies
*-----------------------------------------------*/
config('dispatch.flash_cookie', 'nfm_');