Findings and Information on MVC in PHP - Libbna/BLOG_SITE GitHub Wiki
MVC Architecture
MVC is a software architectural pattern for implementing user interfaces on computers. It divides a given application into three interconnected parts. This is done to separate internal representations of information from the ways information is presented to, and accepted from the user.
- MVC stands for "Model view And Controller".
- The main aim of MVC Architecture is to separate the Business logic & Application data from the USER interface.
- Different types of Architecture are available. These are 3-tier Architecture, N-tier Architecture, MVC Architecture, etc.
- The main advantage of Architecture is** Reusability, Security and Increasing the performance of Application**.
Model: Database operation such as fetch data or update data etc.
View: End-user GUI through which user can interact with the system, i.e., HTML, CSS.
Controller: Contain Business logic and provide a link between model and view.
REF: https://www.javatpoint.com/php-mvc-architecture
IMPLEMENTING MVC TO THE PROJECT - BLOG_SITE
- Created a folder structure - Model, View, and Controller.