Shop Project - Documentation
Pillar 3: Core System & Application Logic
The core system governs the internal mechanics of the application. It processes incoming data from the database, verifies access control (ACL), manages the request lifecycle, and generates the final output for the end-user.
Developer Orientation Guide
To make code components intuitively discoverable, the core system follows a clear three-stage principle: Request Processing (How does the request enter?), System Tools (How is data validated and translated?), and Output Rendering (How is the HTML generated?).
1. Control Flow & Security (Request Processing)
- GROUP: Control Flow & Security – The life of a request (core-lifecycle)
- Request Lifecycle – From request to output: The life of a request (bootstrap.php, cApp, Dispatcher)
- Bootstrap & App Initialization – The life of a request (bootstrap.php & cApp)
- Routing & Parameters – Handling GET, POST, URL structures, and dispatching
- Session Management – Target routing and user state retention (cSession)
- Roles & Permissions (ACL) – Who is authorized for which action? (cAccess, cAuth)
2. System Interfaces & Internal Engines
- GROUP: System Interfaces & Internal Engines (core-services)
- Asynchronous Interfaces – public/ajax.php and the internal API
- Language Engine & Labels – Localization and translation management
- Background Processes – Automated tasks and cronjobs (Future)
3. Output & View Rendering
- GROUP: Output & View Rendering (core-rendering)
- MVC Architecture – Interaction and structure of Controller, Model & View
- Dynamic Assets – Runtime compilation of .js.php and .css.php via style.php
- Navigation & Menus – Dynamic building of menu structures (nav.service.php)
- Validation & Error Handling – Security checks for inputs, logging, and errors