-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmain.php
126 lines (98 loc) · 3.59 KB
/
main.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
/**
* Main configuration.
* All properties can be overridden in mode_<mode>.php files
*/
return array(
// Set yiiPath
'yiiPath' => __DIR__ . '/../vendor/yiisoft/yii/framework/yii.php',
'yiicPath' => __DIR__ . '/../vendor/yiisoft/yii/framework/yiic.php',
'yiitPath' => __DIR__ . '/../vendor/yiisoft/yii/framework/yiit.php',
// Set YII_DEBUG and YII_TRACE_LEVEL flags
'yiiDebug' => true,
'yiiTraceLevel' => 0,
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
'configWeb' => array(
'basePath' => __DIR__ . '/..',
'name' => 'My Web Application',
// Aliases
'aliases' => array(
// uncomment the following to define a path alias
//'local' => 'path/to/local-folder'
),
// Preloading 'log' component
'preload' => array('log'),
// Autoloading model and component classes
'import' => array(
'application.models.*',
'application.components.*',
),
// Application components
'components' => array(
'user' => array(
// enable cookie-based authentication
'allowAutoLogin' => true,
),
// uncomment the following to enable URLs in path-format
/*
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
*/
// Database
'db' => array(
'connectionString' => '', //override in config/mode_<mode>.php
'username' => '', //override in config/mode_<mode>.php
'password' => '', //override in config/mode_<mode>.php
'charset' => 'utf8',
),
// Error handler
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'[email protected]',
),
),
// This is the Console application configuration. Any writable
// CConsoleApplication properties can be configured here.
// Leave array empty if not used.
// Use value 'inherit' to copy from generated configWeb.
'configConsole' => array(
'basePath' => __DIR__ . '/..',
'name' => 'My Console Application',
// Aliases
'aliases' => 'inherit',
// Preloading 'log' component
'preload' => array('log'),
// Autoloading model and component classes
'import'=>'inherit',
// Application componentshome
'components'=>array(
// Database
'db'=>'inherit',
// Application Log
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
// Save log messages on file
array(
'class' => 'CFileLogRoute',
'levels' => 'error, warning, trace, info',
),
),
),
),
),
);