-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.php
62 lines (60 loc) · 1.85 KB
/
config.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
60
61
62
<?php
return array(
'basePath' => '..',
'modules' => array(
'admin' => array(
'defaultController' => 'home',
),
'proxy' => array(
'defaultController' => 'home',
),
'site' => array(
'defaultController' => 'home',
),
'wechat',
),
'defaultController' => 'site',
'import' => array(
'ext.controllers.*',
'application.libs.AmsProxy.AmsProxy',
'application.models.*',
),
'components' => array(
'db' => array(
'connectionString' => 'sqlite:../data/amsProxy.db',
),
'viewRenderer' => array(
'class' => 'ext.view.CPradoViewRenderer',
'fileExtension' => '.tpl',
),
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'rules' => array(
'' => 'site/home/index',
'about' => 'site/home/about',
'faq' => 'site/home/faq',
'wechat' => 'site/wechat/index',
'proxy/login' => 'proxy/home/login',
'api' => 'site/home/api',
'api/vcode' => 'site/api/vcode',
'api/login' => 'site/api/login',
'api/logout' => 'site/api/logout',
'api/courses' => 'proxy/api/courses',
'api/scores' => 'proxy/api/scores',
'api/rankExam' => 'proxy/api/rankExam',
'api/archives' => 'proxy/api/archives',
'api/exam' => 'proxy/api/exam',
),
),
),
'params' => array(
'debug' => true,
'baseUrl' => 'http://ams.gxun.edu.cn/',
'schoolcode' => '10608',
'superAdmin' => array(
'110263100136',
'111253050122',
),
),
);