forked from marcovtwout/yii-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mode_development.php
76 lines (63 loc) · 2.12 KB
/
mode_development.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
<?php
/**
* Development configuration
* Usage:
* - Local website
* - Local DB
* - Show all details on each error
* - Gii module enabled
*/
return array(
// Set YII_DEBUG and YII_TRACE_LEVEL flags
'yiiDebug' => true,
'yiiTraceLevel' => 3,
// This is the specific Web application configuration for this mode.
// Supplied config elements will be merged into the main config array.
'configWeb' => array(
// Modules
'modules' => array(
'gii' => array(
'class' => 'system.gii.GiiModule',
'password' => false,
),
),
// Application components
'components' => array(
// Asset manager
'assetManager' => array(
'linkAssets' => true, // publish symbolic links for easier developing
),
// Database
'db' => array(
'connectionString' => 'mysql:host=DEVELOPMENT_HOST;dbname=DEVELOPMENT_DB',
'username' => 'USERNAME',
'password' => 'PASSWORD',
'enableParamLogging' => true,
),
// Application Log
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
// Save log messages on file
array(
'class' => 'CFileLogRoute',
'levels' => 'error, warning, trace, info',
),
// Show log messages on web pages
array(
'class' => 'CWebLogRoute',
//'categories' => 'system.db.CDbCommand', //queries
'levels' => 'error, warning, trace, info',
//'showInFireBug' => true,
),
),
),
),
),
// 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(
),
);