Merge pull request #142 from ajmedway/patch-1

Improved docs to clarify some grey areas with config for Yii2 Basic
This commit is contained in:
Antonio Ramirez
2018-02-07 16:09:03 +01:00
committed by GitHub

View File

@ -110,10 +110,27 @@ Once we have it installed, we have to configure it on your `config.php` file.
'modules' => [ 'modules' => [
'user' => [ 'user' => [
'class' => Da\User\Module::class, 'class' => Da\User\Module::class,
// ...other configs from here: [Configuration Options](installation/configuration-options.md), e.g.
// 'generatePasswords' => true,
// 'switchIdentitySessionKey' => 'myown_usuario_admin_user_key',
] ]
] ]
``` ```
NOTE: If you are using the Yii2 Basic Template, make sure you remove this (default user model config) from your `config.php`,
i.e. `config/web.php` file:
```php
'components' => [
'user' => [
'identityClass' => 'app\models\User',
'enableAutoLogin' => true,
],
],
```
This will ensure the proper functionality of login/guest user detection etc.
Configuration may differ from template to template, the following are some guidelines for sidekit app template and Configuration may differ from template to template, the following are some guidelines for sidekit app template and
the official Yii2 advanced application template: the official Yii2 advanced application template: