Skip to content

DEVKEWI-zz/MVC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MVC

Model View Controller (MVC) architecture pattern with the same model of an application interface, in a model, a view and a controller.

In the MVC pattern, we would then map each of these three parts to the MVC pattern as illustrated in the image below:

Image

External world modeling and visual user feedback are separated and managed by the Model, View, and Controller objects:

Image

The map of the structure folder is below:

application/
β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ Controller.class.php
β”‚   β”œβ”€β”€ ErrorController.class.php (Error 404 = Page not found)
β”‚   β”œβ”€β”€ HomeController.class.php (OK = Home page)
β”œβ”€β”€ models/
β”œβ”€β”€ views/
β”‚   β”œβ”€β”€ default/
β”‚       β”œβ”€β”€ header.php
β”‚       β”œβ”€β”€ footer.php
β”‚   β”œβ”€β”€ pages/
β”‚       β”œβ”€β”€ error.php (Page 404)
β”‚       β”œβ”€β”€ home.php (Home page)
settings/
β”œβ”€β”€ config.php
β”œβ”€β”€ routers/
β”‚   β”œβ”€β”€ Router.class.php
β”‚   β”œβ”€β”€ RouterManager.class.php
assets/

Join us! Developer Nation

Image

About

Model View Controller (MVC) architecture

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors