-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.example
42 lines (41 loc) · 1.3 KB
/
config.php.example
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
<?php
/**
*
* Project: yii2user
* Date: 08/11/2015
* @author Mariusz Soltys.
* @version 1.0.0
* @license http://opensource.org/licenses/MIT
*
*/
return [
'userClass' => 'marsoltys\yii2user\components\WebUser',
'identityClass' => 'marsoltys\yii2user\models\User',
'userModel' => 'marsoltys\yii2user\models\User',
'mainLayout' => '@app/views/layouts/main.php',
'layout' => "topmenu",
'user_page_size' => 10,
'fields_page_size' => 10,
'emailFrom' => Yii::$app->params['adminEmail'],
'sendActivationMail' => true,
'loginNotActiv' => false,
'activeAfterRegister' => false,
'autoLogin' => true,
'rememberMeTime' => 2592000, // 30 days
'urlRules' => [
'login' => 'user/security/login',
'logout' => 'user/security/logout',
[
'class' => 'yii\web\GroupUrlRule',
'prefix' => 'user',
'rules' => [
'/' => 'user/index',
'registration' => 'registration/registration',
'admin/<action:(view|update|delete)>/<id:\d+>' => 'admin/<action>',
'admin' => 'admin/admin',
'profile-field/<id:\d+>' => 'profile-field/view',
'profile-field/<action:(view|update|delete)>/<id:\d+>' => 'profile-field/<action>'
],
]
],
];