# rafaelmiranda1108/saes architecture

> Architecture diagram of the GitHub repository rafaelmiranda1108/saes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rafaelmiranda1108/saes
- Repository: https://github.com/rafaelmiranda1108/saes

## Overview

SAES is a school-administration web application: users enter through a home page and can navigate to academic records, groups, units, schedules, grades, and account-management screens. The tree shows separate controllers, models, forms, and tables for these areas, but the sampled application sources do not establish controller-to-model calls, so those links are omitted. The repository also includes CodeIgniter’s runtime; its bootstrap and routing links are shown only where the excerpts support them.

Main entry points: [`application/views/inicio.php`](https://github.com/rafaelmiranda1108/saes/blob/main/application/views/inicio.php) (SAES home), [`index.php`](https://github.com/rafaelmiranda1108/saes/blob/main/index.php) (Front controller), [`system/core/CodeIgniter.php`](https://github.com/rafaelmiranda1108/saes/blob/main/system/core/CodeIgniter.php) (Framework bootstrap), [`system/core/Router.php`](https://github.com/rafaelmiranda1108/saes/blob/main/system/core/Router.php) (Request routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_academic["Academic records"]
  node_controllers_academic["Academic controllers"]
  node_models_academic["Academic models"]
  node_database[("Configured database<br/>[database.php]")]
  node_students["Student records"]
  node_subjects["Subjects and assignments<br/>[Materias.php]"]
  node_groups["School groups"]
  node_enrollment["Group enrollment"]
  node_units["Course units"]
  node_grades["Grade capture"]
  node_grade_reports["Grade reports<br/>[Lista_calif.php]"]
  node_schedules["Schedules<br/>[Tabla_horarios.php]"]
end

subgraph group_people["People and access"]
  node_controllers_people["People controllers"]
  node_models_people["People models"]
  node_teachers["Teacher records"]
  node_accounts["User accounts<br/>[Usuarios_froms.php]"]
end

subgraph group_presentation["User interface"]
  node_home["SAES home<br/>[inicio.php]"]
  node_forms["Record forms"]
  node_tables["Record tables"]
end

subgraph group_runtime["CodeIgniter runtime"]
  node_front["Front controller<br/>[index.php]"]
  node_bootstrap["Framework bootstrap<br/>[CodeIgniter.php]"]
  node_routing["Request routing<br/>[Router.php]"]
  node_core["Core services"]
  node_routes["Route configuration<br/>[routes.php]"]
end

node_user(("User"))

node_user -->|"requests page"| node_front
node_front -->|"loads runtime"| node_bootstrap
node_bootstrap -->|"creates router"| node_routing
node_routing -->|"loads routes"| node_routes
node_home -->|"links to"| node_teachers
node_home -->|"links to"| node_accounts
node_home -->|"links to"| node_subjects
node_home -->|"links to"| node_groups
node_controllers_academic -.->|"coordinates with"| node_models_academic
node_controllers_people -.->|"coordinates with"| node_models_people

click node_front "https://github.com/rafaelmiranda1108/saes/blob/main/index.php"
click node_bootstrap "https://github.com/rafaelmiranda1108/saes/blob/main/system/core/CodeIgniter.php"
click node_routing "https://github.com/rafaelmiranda1108/saes/blob/main/system/core/Router.php"
click node_core "https://github.com/rafaelmiranda1108/saes/tree/main/system/core"
click node_controllers_academic "https://github.com/rafaelmiranda1108/saes/tree/main/application/controllers"
click node_models_academic "https://github.com/rafaelmiranda1108/saes/tree/main/application/models"
click node_controllers_people "https://github.com/rafaelmiranda1108/saes/tree/main/application/controllers"
click node_models_people "https://github.com/rafaelmiranda1108/saes/tree/main/application/models"
click node_home "https://github.com/rafaelmiranda1108/saes/blob/main/application/views/inicio.php"
click node_forms "https://github.com/rafaelmiranda1108/saes/tree/main/application/views/formularios"
click node_tables "https://github.com/rafaelmiranda1108/saes/tree/main/application/views/tablas"
click node_routes "https://github.com/rafaelmiranda1108/saes/blob/main/application/config/routes.php"
click node_database "https://github.com/rafaelmiranda1108/saes/blob/main/application/config/database.php"
click node_students "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Alumnos_froms_controll.php"
click node_subjects "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Materias.php"
click node_groups "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Grupos_controll.php"
click node_enrollment "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Inscripciongrup_controll.php"
click node_units "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Unidad_controll.php"
click node_grades "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Captcal_controll.php"
click node_grade_reports "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Lista_calif.php"
click node_schedules "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Tabla_horarios.php"
click node_teachers "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Profesores_froms.php"
click node_accounts "https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Usuarios_froms.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_controllers_academic,node_models_academic,node_database,node_students,node_subjects,node_groups,node_enrollment,node_units,node_grades,node_grade_reports,node_schedules,node_user toneBlue
class node_controllers_people,node_models_people,node_teachers,node_accounts toneAmber
class node_home,node_forms,node_tables toneMint
class node_front,node_bootstrap,node_routing,node_core,node_routes toneRose
```

## Components

### Academic records

- [Academic controllers](https://github.com/rafaelmiranda1108/saes/tree/main/application/controllers): `application/controllers`
- [Academic models](https://github.com/rafaelmiranda1108/saes/tree/main/application/models): `application/models`
- [Configured database](https://github.com/rafaelmiranda1108/saes/blob/main/application/config/database.php): `application/config/database.php`
- [Student records](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Alumnos_froms_controll.php): `application/controllers/Alumnos_froms_controll.php`
- [Subjects and assignments](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Materias.php): `application/controllers/Materias.php`
- [School groups](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Grupos_controll.php): `application/controllers/Grupos_controll.php`
- [Group enrollment](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Inscripciongrup_controll.php): `application/controllers/Inscripciongrup_controll.php`
- [Course units](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Unidad_controll.php): `application/controllers/Unidad_controll.php`
- [Grade capture](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Captcal_controll.php): `application/controllers/Captcal_controll.php`
- [Grade reports](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Lista_calif.php): `application/controllers/Lista_calif.php`
- [Schedules](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Tabla_horarios.php): `application/controllers/Tabla_horarios.php`

### People and access

- [People controllers](https://github.com/rafaelmiranda1108/saes/tree/main/application/controllers): `application/controllers`
- [People models](https://github.com/rafaelmiranda1108/saes/tree/main/application/models): `application/models`
- [Teacher records](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Profesores_froms.php): `application/controllers/Profesores_froms.php`
- [User accounts](https://github.com/rafaelmiranda1108/saes/blob/main/application/controllers/Usuarios_froms.php): `application/controllers/Usuarios_froms.php`

### User interface

- [SAES home](https://github.com/rafaelmiranda1108/saes/blob/main/application/views/inicio.php): `application/views/inicio.php`
- [Record forms](https://github.com/rafaelmiranda1108/saes/tree/main/application/views/formularios): `application/views/formularios`
- [Record tables](https://github.com/rafaelmiranda1108/saes/tree/main/application/views/tablas): `application/views/tablas`

### CodeIgniter runtime

- [Front controller](https://github.com/rafaelmiranda1108/saes/blob/main/index.php): `index.php`
- [Framework bootstrap](https://github.com/rafaelmiranda1108/saes/blob/main/system/core/CodeIgniter.php): `system/core/CodeIgniter.php`
- [Request routing](https://github.com/rafaelmiranda1108/saes/blob/main/system/core/Router.php): `system/core/Router.php`
- [Core services](https://github.com/rafaelmiranda1108/saes/tree/main/system/core): `system/core`
- [Route configuration](https://github.com/rafaelmiranda1108/saes/blob/main/application/config/routes.php): `application/config/routes.php`

### Other components

- **User**

## Connections

- User → Front controller: requests page (evidence: `index.php`)
- Front controller → Framework bootstrap: loads runtime (evidence: `index.php`)
- Framework bootstrap → Request routing: creates router (evidence: `system/core/CodeIgniter.php`)
- Request routing → Route configuration: loads routes (evidence: `system/core/Router.php`)
- SAES home → Teacher records: links to (evidence: `application/views/inicio.php`)
- SAES home → User accounts: links to (evidence: `application/views/inicio.php`)
- SAES home → Subjects and assignments: links to (evidence: `application/views/inicio.php`)
- SAES home → School groups: links to (evidence: `application/views/inicio.php`)
- Academic controllers → Academic models: coordinates with
- People controllers → People models: coordinates with
