How srblx/projet-qcm works
Main Components
A. Frontend Layer:
• User Interface (2_User)
• Admin Interface (1_Admin)
• Shared Components (Content)
B. Backend Layer:
• Controllers (MVC)
• Models (Database interactions)
• Views (PHP templates)
C. Database Layer:
• SQL Database (indicated by .sql files)
[Client Layer]
• ↓ ↑
[Application Layer]
• ↓ ↑
[Data Layer]
Detailed Component Breakdown
Client Layer:
• Public Interface (login, signup, home)
• User Interface (quiz, leaderboard, profile)
• Admin Interface (CRUD operations, user management)
• JavaScript components (emailJS, navigation, question handling)
• CSS styling modules
Application Layer:
• Controller Components:
• Base Controller
• Specialized Controllers (home, choice, contact, etc.)
• Model Layer:
• Data access logic
• Business logic
• View Components:
• Template rendering
• Response formatting
Data Layer:
• SQL Database
• Database schema (from qcm.sql)
Additional Elements
• External services (EmailJS)
• Shared utilities (header.php, footer.php)
• Static content (CSS, images, JavaScript)