main-local.php 1.08 KB
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/**
 * Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
 * OPEN 2.0
 *
 * @package    arter\amos\basic\template
 * @category   CategoryName
 * @author     Elite Division S.r.l.
 */

return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
Marcello Pivanti's avatar
Marcello Pivanti committed
16
17
18
            'dsn' => 'mysql:host=localhost;dbname=ADD_HERE_DATABASE_NAME',
            'username' => 'ADD_HERE_DATABASE_USERNAME',
            'password' => 'ADD_HERE_DATABASE_PASSWORD',
Marcello Pivanti's avatar
Marcello Pivanti committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
            'charset' => 'utf8',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 88000,
            'schemaCache' => 'schemaCache',
            'attributes'=>[
                PDO::ATTR_PERSISTENT => true
            ]
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            // send all mails to a file by default. You have to set
            // 'useFileTransport' to false and configure a transport
            // for the mailer to send real emails.
            'useFileTransport' => true,
        ],
    ],
];