-
Notifications
You must be signed in to change notification settings - Fork 3
/
config-sample.php
43 lines (40 loc) · 1.16 KB
/
config-sample.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
<?php
defined('APPROOT_DIR') or die();
/**
* Local site config.
* Copy this file to config.php and edit.
*/
// uncomment the following two lines for enable development tool and debug info.
//defined('YII_DEBUG') or define('YII_DEBUG', true);
//defined('YII_ENV') or define('YII_ENV', 'dev');
return [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) -
// this is required by cookie validation
'cookieValidationKey' => '',
],
// Database configuration.
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2basic',
// SQLite3 example:
// 'dsn' => 'sqlite:@runtime/data/db.sq3',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
],
],
// Configure your modules here:
'modules' => [
// 'debug' => [
// 'allowedIPs' => ['192.168.1.*'],
// ],
// 'gii' => [
// 'allowedIPs' => ['192.168.1.*'],
// ],
],
'params' => [
// Application parameters.
],
];