jasny/mvc

This package is abandoned and no longer maintained. No replacement package was suggested.

The basics for an MVC application

Maintainers

Details

github.com/jasny/mvc

Source

Installs: 22 863

Dependents: 0

Suggesters: 1

Security: 0

Stars: 6

Watchers: 4

Forks: 10

Type:metapackage

v2.0.0-beta1 2020-08-26 10:24 UTC

This package is auto-updated.

Last update: 2022-03-26 15:13:56 UTC


README

Includes a router, a controller base class and a class for loading views.

What is MVC?

The Model View Controller pattern splits the user interface interaction into three distinct roles. Each with it's own responsibility.

View: "Hey, controller, the user just told me he wants item 4 deleted." Controller: "Hmm, having checked his credentials, he is allowed to do that... Hey, model, I want you to get item 4 and do whatever you do to delete it." Model: "Item 4... got it. It's deleted. Back to you, Controller." Controller: "Here, I'll collect the new set of data. Back to you, view." View: "Cool, I'll show the new set to the user now."