1/ Activation de Gii. Ouvrir :
common/config/main-local.php
Remplacer tout par :
<?php
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=gitgame',
'username' => 'root',
'password' => 'mot2passe',
'charset' => 'utf8',
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
],
],
'bootstrap' => ['gii'],
'modules' => [
'gii' => 'yii\gii\Module',
],
];
2/ Test depuis le backend.
http://backend.dev/index.php?r=gii
