Advanced
paie.loc.conf (current iteration, tried several)
<VirtualHost *:80>
ServerName paie.loc
DocumentRoot “/var/www/html/payroll/frontend/web/”
<Directory "/var/www/html/payroll/frontend/web/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
main.php<?php
$params = array_merge(
require DIR . ‘/…/…/common/config/params.php’,
require DIR . ‘/…/…/common/config/params-local.php’,
require DIR . ‘/params.php’,
require DIR . ‘/params-local.php’
);
return [
‘id’ => ‘app-frontend’,
‘name’=>‘Paie Kasaï Central’,
‘basePath’ => dirname(DIR),
‘bootstrap’ => [‘log’],
‘controllerNamespace’ => ‘frontend\controllers’,
‘language’ => ‘fr-FR’,
‘timezone’ => ‘Africa/Harare’,
‘modules’ => [
‘gridview’ => [
‘class’ => ‘kartik\grid\Module’,
],
‘dynagrid’=>[
‘class’=>’\kartik\dynagrid\Module’,
// other settings (refer documentation)
],
],
‘components’ => [
‘request’ => [
‘csrfParam’ => ‘_csrf-frontend’,
],
‘user’ => [
‘identityClass’ => ‘common\models\User’,
‘enableAutoLogin’ => false,
‘identityCookie’ => [‘name’ => ‘_identity-frontend’, ‘httpOnly’ => true],
],
‘session’ => [
// this is the name of the session cookie used for login on the frontend
‘name’ => ‘advanced-frontend’,
],
‘log’ => [
‘traceLevel’ => YII_DEBUG ? 3 : 0,
‘targets’ => [
[
‘class’ => ‘yii\log\FileTarget’,
‘levels’ => [‘error’, ‘warning’],
],
],
],
‘authManager’=>
[
‘class’=> ‘yii\rbac\DbManager’,
‘defaultRoles’=> [‘guest’],
],
‘errorHandler’ => [
‘errorAction’ => ‘site/error’,
],
/* 'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
],
],
*/
],
'params' => $params,
];