Improved docs to clarify some grey areas with config for Yii2 Basic

Hit some snags, helping out the next guy...
This commit is contained in:
Alec Pritchard
2018-02-06 17:42:45 +00:00
committed by GitHub
parent dcb6d7a336
commit bc027f100f

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:
```
'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: