https://github.com/imranhsayed/mvc-php
⚡ A demo to create MVC in php
https://github.com/imranhsayed/mvc-php
Last synced: 9 months ago
JSON representation
⚡ A demo to create MVC in php
- Host: GitHub
- URL: https://github.com/imranhsayed/mvc-php
- Owner: imranhsayed
- Created: 2019-11-20T04:36:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-21T06:59:36.000Z (about 6 years ago)
- Last Synced: 2024-12-28T09:04:12.097Z (12 months ago)
- Language: PHP
- Size: 96.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⚡ Model View Controller in PHP
A demo for MVC in php.
# What is MVC?
For better readability, rather than mixing our php and html, we can have our project organized in a new software design pattern called MVC( Model View Controller )
MVC divides the related program logic into three interconnected elements:
1. **Model**: ( The User interface ) interacts with the database. It receives, stores and retrieves data for the user.
2. **View**: ( The business logic layer ) displays information to the user and integrates data from the controller.
3. **Controller**: ( The application logic layer ) sends and receives data from the model and passes to the view.
