params.php 504 Bytes
Newer Older
1
<?php
2 3 4 5 6

Yii::setAlias('common', __DIR__ . '/../');
Yii::setAlias('frontend', __DIR__ . '/../../frontend');
Yii::setAlias('backend', __DIR__ . '/../../backend');

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

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

15
	'components.db' => [
16 17 18 19
		'class' => 'yii\db\Connection',
		'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
		'username' => 'root',
		'password' => '',
Alexander Makarov committed
20
		'charset' => 'utf8',
21 22
	],
];