# lancestrom/cbt2.6client architecture

> Architecture diagram of the GitHub repository lancestrom/cbt2.6client, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lancestrom/cbt2.6client
- Repository: https://github.com/lancestrom/cbt2.6client

## Overview

This repository combines a student exam portal with the CodeIgniter framework it runs on. The portal workflow is login, view eligible exams, open exam details, record participation, answer questions, and submit responses; Dashboard.php shows the application’s data and view calls. The framework bootstrap and routing are visible in excerpts, but many application models and framework modules were not sampled in full, so their internal links are omitted rather than inferred.

Main entry points: [`application/controllers/Dashboard.php`](https://github.com/lancestrom/cbt2.6client/blob/main/application/controllers/Dashboard.php) (Exam dashboard), [`system/core/CodeIgniter.php`](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/CodeIgniter.php) (Runtime bootstrap), [`application/controllers/Login.php`](https://github.com/lancestrom/cbt2.6client/blob/main/application/controllers/Login.php) (Login and authentication), [`system/core/Router.php`](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Router.php) (URI routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Exam portal"]
  node_routes["Application routes<br/>[routes.php]"]
  node_login["Login and authentication<br/>[Login.php]"]
  node_dashboard["Exam dashboard<br/>[Dashboard.php]"]
end

subgraph group_framework["CodeIgniter runtime"]
  node_front["Front controller<br/>[index.php]"]
  node_bootstrap["Runtime bootstrap<br/>[CodeIgniter.php]"]
  node_router["URI routing<br/>[Router.php]"]
  node_config["Configuration<br/>[Config.php]"]
  node_controller["Controller base<br/>[Controller.php]"]
  node_loader["Class and view loader<br/>[Loader.php]"]
  node_input["Request input<br/>[Input.php]"]
  node_output["Response output<br/>[Output.php]"]
  node_security["Request security<br/>[Security.php]"]
  node_hooks["Runtime hooks<br/>[Hooks.php]"]
  node_session["Session management<br/>[Session.php]"]
end

subgraph group_data["Portal data"]
  node_safety["Access checks<br/>[Model_keamanan.php]"]
  node_students["Student records<br/>[Model_siswa.php]"]
  node_exams["Exam schedules and questions<br/>[Model_ujian.php]"]
  node_sessionmodel["User session records<br/>[Session_Model.php]"]
  node_database[("Configured database<br/>[database.php]")]
end

subgraph group_presentation["Portal views"]
  node_loginview["Login screen<br/>[tampilan_login.php]"]
  node_studentview["Student dashboard<br/>[tampilan_siswa.php]"]
  node_detailview["Exam details<br/>[detail_ujian.php]"]
  node_questionview["Exam questions"]
  node_templates["Shared page templates<br/>[header.php]"]
end

node_student(("Student"))

node_student -->|"sends request"| node_front
node_front -->|"starts runtime"| node_bootstrap
node_bootstrap -->|"loads routing"| node_router
node_bootstrap -->|"loads config"| node_config
node_bootstrap -->|"loads hooks"| node_hooks
node_bootstrap -->|"loads input"| node_input
node_bootstrap -->|"loads output"| node_output
node_bootstrap -->|"loads security"| node_security
node_bootstrap -->|"dispatches controller"| node_controller
node_router -->|"reads settings"| node_config
node_router -->|"loads routes"| node_routes
node_routes -->|"selects default"| node_login
node_controller -->|"initializes loader"| node_loader
node_login -->|"renders screen"| node_loginview
node_login -->|"reads credentials"| node_input
node_login -->|"creates session"| node_sessionmodel
node_login -->|"sets login state"| node_session
node_login -->|"redirects student"| node_dashboard
node_dashboard -->|"checks access"| node_safety
node_dashboard -->|"loads student"| node_students
node_dashboard -->|"loads exam data"| node_exams
node_dashboard -->|"renders dashboard"| node_studentview
node_dashboard -->|"renders details"| node_detailview
node_dashboard -->|"renders questions"| node_questionview
node_dashboard -->|"loads page shell"| node_templates
node_dashboard -->|"deletes user sessions"| node_sessionmodel
node_dashboard -->|"reads submitted answers"| node_input
node_dashboard -->|"writes participation and answers"| node_database
node_dashboard -->|"ends session"| node_session
node_login -->|"checks credentials"| node_database

click node_front "https://github.com/lancestrom/cbt2.6client/blob/main/index.php"
click node_bootstrap "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/CodeIgniter.php"
click node_router "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Router.php"
click node_config "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Config.php"
click node_controller "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Controller.php"
click node_loader "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Loader.php"
click node_input "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Input.php"
click node_output "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Output.php"
click node_security "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Security.php"
click node_hooks "https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Hooks.php"
click node_session "https://github.com/lancestrom/cbt2.6client/blob/main/system/libraries/Session/Session.php"
click node_routes "https://github.com/lancestrom/cbt2.6client/blob/main/application/config/routes.php"
click node_login "https://github.com/lancestrom/cbt2.6client/blob/main/application/controllers/Login.php"
click node_dashboard "https://github.com/lancestrom/cbt2.6client/blob/main/application/controllers/Dashboard.php"
click node_safety "https://github.com/lancestrom/cbt2.6client/blob/main/application/models/Model_keamanan.php"
click node_students "https://github.com/lancestrom/cbt2.6client/blob/main/application/models/Model_siswa.php"
click node_exams "https://github.com/lancestrom/cbt2.6client/blob/main/application/models/Model_ujian.php"
click node_sessionmodel "https://github.com/lancestrom/cbt2.6client/blob/main/application/models/Session_Model.php"
click node_database "https://github.com/lancestrom/cbt2.6client/blob/main/application/config/database.php"
click node_loginview "https://github.com/lancestrom/cbt2.6client/blob/main/application/views/tampilan_login.php"
click node_studentview "https://github.com/lancestrom/cbt2.6client/blob/main/application/views/tampilan_siswa.php"
click node_detailview "https://github.com/lancestrom/cbt2.6client/blob/main/application/views/detail_ujian.php"
click node_questionview "https://github.com/lancestrom/cbt2.6client/blob/main/application/views/tampilan_soal_ujian.php"
click node_templates "https://github.com/lancestrom/cbt2.6client/blob/main/application/views/templates/header.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routes,node_login,node_dashboard toneBlue
class node_front,node_bootstrap,node_router,node_config,node_controller,node_loader,node_input,node_output,node_security,node_hooks,node_session toneAmber
class node_safety,node_students,node_exams,node_sessionmodel,node_database toneMint
class node_loginview,node_studentview,node_detailview,node_questionview,node_templates toneRose
class node_student toneIndigo
```

## Components

### Exam portal

- [Application routes](https://github.com/lancestrom/cbt2.6client/blob/main/application/config/routes.php): `application/config/routes.php`
- [Login and authentication](https://github.com/lancestrom/cbt2.6client/blob/main/application/controllers/Login.php): `application/controllers/Login.php`
- [Exam dashboard](https://github.com/lancestrom/cbt2.6client/blob/main/application/controllers/Dashboard.php): `application/controllers/Dashboard.php`

### CodeIgniter runtime

- [Front controller](https://github.com/lancestrom/cbt2.6client/blob/main/index.php): `index.php`
- [Runtime bootstrap](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/CodeIgniter.php): `system/core/CodeIgniter.php`
- [URI routing](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Router.php): `system/core/Router.php`
- [Configuration](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Config.php): `system/core/Config.php`
- [Controller base](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Controller.php): `system/core/Controller.php`
- [Class and view loader](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Loader.php): `system/core/Loader.php`
- [Request input](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Input.php): `system/core/Input.php`
- [Response output](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Output.php): `system/core/Output.php`
- [Request security](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Security.php): `system/core/Security.php`
- [Runtime hooks](https://github.com/lancestrom/cbt2.6client/blob/main/system/core/Hooks.php): `system/core/Hooks.php`
- [Session management](https://github.com/lancestrom/cbt2.6client/blob/main/system/libraries/Session/Session.php): `system/libraries/Session/Session.php`

### Portal data

- [Access checks](https://github.com/lancestrom/cbt2.6client/blob/main/application/models/Model_keamanan.php): `application/models/Model_keamanan.php`
- [Student records](https://github.com/lancestrom/cbt2.6client/blob/main/application/models/Model_siswa.php): `application/models/Model_siswa.php`
- [Exam schedules and questions](https://github.com/lancestrom/cbt2.6client/blob/main/application/models/Model_ujian.php): `application/models/Model_ujian.php`
- [User session records](https://github.com/lancestrom/cbt2.6client/blob/main/application/models/Session_Model.php): `application/models/Session_Model.php`
- [Configured database](https://github.com/lancestrom/cbt2.6client/blob/main/application/config/database.php): `application/config/database.php`

### Portal views

- [Login screen](https://github.com/lancestrom/cbt2.6client/blob/main/application/views/tampilan_login.php): `application/views/tampilan_login.php`
- [Student dashboard](https://github.com/lancestrom/cbt2.6client/blob/main/application/views/tampilan_siswa.php): `application/views/tampilan_siswa.php`
- [Exam details](https://github.com/lancestrom/cbt2.6client/blob/main/application/views/detail_ujian.php): `application/views/detail_ujian.php`
- [Exam questions](https://github.com/lancestrom/cbt2.6client/blob/main/application/views/tampilan_soal_ujian.php): `application/views/tampilan_soal_ujian.php`
- [Shared page templates](https://github.com/lancestrom/cbt2.6client/blob/main/application/views/templates/header.php): `application/views/templates/header.php`

### Other components

- **Student**

## Connections

- Student → Front controller: sends request (evidence: `index.php`)
- Front controller → Runtime bootstrap: starts runtime (evidence: `index.php`)
- Runtime bootstrap → URI routing: loads routing (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Configuration: loads config (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Runtime hooks: loads hooks (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Request input: loads input (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Response output: loads output (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Request security: loads security (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Controller base: dispatches controller (evidence: `system/core/CodeIgniter.php`)
- URI routing → Configuration: reads settings (evidence: `system/core/Router.php`)
- URI routing → Application routes: loads routes (evidence: `system/core/Router.php`)
- Application routes → Login and authentication: selects default (evidence: `application/config/routes.php`)
- Controller base → Class and view loader: initializes loader (evidence: `system/core/Controller.php`)
- Login and authentication → Login screen: renders screen (evidence: `application/controllers/Login.php`)
- Login and authentication → Request input: reads credentials (evidence: `application/controllers/Login.php`)
- Login and authentication → User session records: creates session (evidence: `application/controllers/Login.php`)
- Login and authentication → Session management: sets login state (evidence: `application/controllers/Login.php`)
- Login and authentication → Exam dashboard: redirects student (evidence: `application/controllers/Login.php`)
- Exam dashboard → Access checks: checks access (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Student records: loads student (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Exam schedules and questions: loads exam data (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Student dashboard: renders dashboard (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Exam details: renders details (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Exam questions: renders questions (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Shared page templates: loads page shell (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → User session records: deletes user sessions (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Request input: reads submitted answers (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Configured database: writes participation and answers (evidence: `application/controllers/Dashboard.php`)
- Exam dashboard → Session management: ends session (evidence: `application/controllers/Dashboard.php`)
- Login and authentication → Configured database: checks credentials (evidence: `application/controllers/Login.php`)
