apply the school year concept
Tests / PHPUnit (push) Failing after 1m19s

This commit is contained in:
root
2026-07-14 00:59:00 -04:00
parent 504c3bc9f9
commit feb1b29a32
73 changed files with 4288 additions and 620 deletions
+6 -1
View File
@@ -165,6 +165,7 @@ html, body { overflow-x: hidden; }
<body data-app-menu-mode="<?= esc($appMenuMode) ?>">
<?php include(__DIR__ . '/../partials/navbar.php'); ?>
<?= view('partials/school_year_selector') ?>
<?php
$uri = service('uri');
@@ -188,7 +189,11 @@ html, body { overflow-x: hidden; }
if ($isTeacher) {
$cfg = new \App\Models\ConfigurationModel();
$tcModel = new \App\Models\TeacherClassModel();
$sy = (string)($cfg->getConfig('school_year') ?? '');
try {
$sy = service('schoolYearContext')->resolve(service('request'))->yearName();
} catch (\Throwable $e) {
$sy = (string)($cfg->getConfig('school_year') ?? '');
}
$sem = (string)($cfg->getConfig('semester') ?? '');
$uid = (int)(session()->get('user_id') ?? 0);
if ($uid) {