params.php 699 Bytes
Newer Older
1
<?php
2

3 4 5
Yii::setAlias('common', realpath(__DIR__ . '/../'));
Yii::setAlias('frontend', realpath(__DIR__ . '/../../frontend'));
Yii::setAlias('backend', realpath(__DIR__ . '/../../backend'));
6
Yii::setAlias('console', realpath(__DIR__ . '/../../console'));
7

8
return [
9
	'adminEmail' => 'admin@example.com',
10
	'supportEmail' => 'support@example.com',
11

12
	'components.cache' => [
13
		'class' => 'yii\caching\FileCache',
14
	],
15

16 17
	'components.mail' => [
		'class' => 'yii\swiftmailer\Mailer',
18
		'viewPath' => '@common/mails',
19 20
	],

21
	'components.db' => [
22 23 24 25
		'class' => 'yii\db\Connection',
		'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
		'username' => 'root',
		'password' => '',
Alexander Makarov committed
26
		'charset' => 'utf8',
27 28
	],
];