Model: Manages the data and business logic.
View: Outputs the final user interface and presents data to the user.
Controller: Handles the user requests, manipulates the model, and selects the view to display.
Handles database connection and queries.
Base controller with common functionality for other controllers.
Base model providing common data handling methods.
View /views/home/index.php
HomeController for serving the homepage, and ArticleController for handling article-related requests.
Models: Article model to handle data related to articles.
Views: Separate directories for home and articles, each containing PHP files for different views.
Den här sidan designades av 21C: