# tristancacha/rally-supply-codeigniter architecture

> Architecture diagram of the GitHub repository tristancacha/rally-supply-codeigniter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tristancacha/rally-supply-codeigniter
- Repository: https://github.com/tristancacha/rally-supply-codeigniter

## Overview

Rally Supply is a small CodeIgniter pickleball-shop starter, not a functioning POS: it serves a landing page, static product catalog, about page, and temporary customer and staff lists. The main workflow is an HTTP visitor reaching a declared route, which dispatches to a controller and renders a page or account view. Catalog filtering and account data are held in controller-local PHP arrays; the README explicitly says there is no database or checkout. Framework configuration and error presentation are included as supporting runtime layers; unsampled view wiring is represented only where documented.

Main entry points: [`app/Config/Routes.php`](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Config/Routes.php) (Page routes), [`app/Controllers/Pages.php`](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Pages.php) (Landing and about), [`app/Controllers/BaseController.php`](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/BaseController.php) (Base controller), [`app/Controllers/Catalog.php`](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Catalog.php) (Gear catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Request routing"]
  node_front["Web entry<br/>[index.php]"]
  node_routes["Page routes<br/>[Routes.php]"]
end

subgraph group_domain["Store pages"]
  node_pages["Landing and about<br/>[Pages.php]"]
  node_catalog["Gear catalog<br/>[Catalog.php]"]
  node_customers["Customer list<br/>[Customers.php]"]
  node_users["Staff list<br/>[Users.php]"]
end

subgraph group_presentation["Page presentation"]
  node_homeview["Home page<br/>[home.php]"]
  node_aboutview["About page<br/>[about.php]"]
  node_shopview["Shop page<br/>[shop.php]"]
  node_customersview["Customer table<br/>[customers.php]"]
  node_usersview["Staff table<br/>[users.php]"]
  node_partials["Shared page chrome"]
end

subgraph group_support["Framework support"]
  node_base["Base controller<br/>[BaseController.php]"]
  node_config["Framework configuration"]
  node_errorview["Exception page"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests page"| node_front
node_front -.->|"boots app"| node_routes
node_routes -->|"dispatches"| node_pages
node_routes -->|"dispatches"| node_catalog
node_routes -->|"dispatches"| node_customers
node_routes -->|"dispatches"| node_users
node_pages -->|"extends"| node_base
node_catalog -->|"extends"| node_base
node_customers -->|"extends"| node_base
node_users -->|"extends"| node_base
node_pages -->|"renders"| node_homeview
node_pages -->|"renders"| node_aboutview
node_catalog -->|"renders"| node_shopview
node_customers -->|"renders"| node_customersview
node_users -->|"renders"| node_usersview
node_homeview -.->|"uses shared chrome"| node_partials
node_shopview -.->|"uses shared chrome"| node_partials
node_aboutview -.->|"uses shared chrome"| node_partials

click node_front "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/public/index.php"
click node_routes "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Config/Routes.php"
click node_base "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/BaseController.php"
click node_pages "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Pages.php"
click node_catalog "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Catalog.php"
click node_customers "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Customers.php"
click node_users "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Users.php"
click node_homeview "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/pages/home.php"
click node_aboutview "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/pages/about.php"
click node_shopview "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/pages/shop.php"
click node_customersview "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/accounts/customers.php"
click node_usersview "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/accounts/users.php"
click node_partials "https://github.com/tristancacha/rally-supply-codeigniter/tree/main/app/Views/partials"
click node_config "https://github.com/tristancacha/rally-supply-codeigniter/tree/main/app/Config"
click node_errorview "https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/errors/html/error_exception.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_front,node_routes toneBlue
class node_pages,node_catalog,node_customers,node_users toneAmber
class node_homeview,node_aboutview,node_shopview,node_customersview,node_usersview,node_partials toneMint
class node_base,node_config,node_errorview toneRose
class node_visitor toneIndigo
```

## Components

### Request routing

- [Web entry](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/public/index.php): `public/index.php`
- [Page routes](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Config/Routes.php): `app/Config/Routes.php`

### Store pages

- [Landing and about](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Pages.php): `app/Controllers/Pages.php`
- [Gear catalog](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Catalog.php): `app/Controllers/Catalog.php`
- [Customer list](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Customers.php): `app/Controllers/Customers.php`
- [Staff list](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/Users.php): `app/Controllers/Users.php`

### Page presentation

- [Home page](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/pages/home.php): `app/Views/pages/home.php`
- [About page](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/pages/about.php): `app/Views/pages/about.php`
- [Shop page](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/pages/shop.php): `app/Views/pages/shop.php`
- [Customer table](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/accounts/customers.php): `app/Views/accounts/customers.php`
- [Staff table](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/accounts/users.php): `app/Views/accounts/users.php`
- [Shared page chrome](https://github.com/tristancacha/rally-supply-codeigniter/tree/main/app/Views/partials): `app/Views/partials`

### Framework support

- [Base controller](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Controllers/BaseController.php): `app/Controllers/BaseController.php`
- [Framework configuration](https://github.com/tristancacha/rally-supply-codeigniter/tree/main/app/Config): `app/Config`
- [Exception page](https://github.com/tristancacha/rally-supply-codeigniter/blob/main/app/Views/errors/html/error_exception.php): `app/Views/errors/html/error_exception.php`

### Other components

- **Visitor**

## Connections

- Visitor → Web entry: requests page
- Web entry → Page routes: boots app
- Page routes → Landing and about: dispatches (evidence: `app/Config/Routes.php`)
- Page routes → Gear catalog: dispatches (evidence: `app/Config/Routes.php`)
- Page routes → Customer list: dispatches (evidence: `app/Config/Routes.php`)
- Page routes → Staff list: dispatches (evidence: `app/Config/Routes.php`)
- Landing and about → Base controller: extends (evidence: `app/Controllers/Pages.php`)
- Gear catalog → Base controller: extends (evidence: `app/Controllers/Catalog.php`)
- Customer list → Base controller: extends (evidence: `app/Controllers/Customers.php`)
- Staff list → Base controller: extends (evidence: `app/Controllers/Users.php`)
- Landing and about → Home page: renders
- Landing and about → About page: renders
- Gear catalog → Shop page: renders
- Customer list → Customer table: renders (evidence: `app/Controllers/Customers.php`)
- Staff list → Staff table: renders (evidence: `app/Controllers/Users.php`)
- Home page → Shared page chrome: uses shared chrome
- Shop page → Shared page chrome: uses shared chrome
- About page → Shared page chrome: uses shared chrome
