MVC in PHP - General Understanding and Specific Issues

I'm currently trying to understand how the MVC environment works in PHP. So I created this basic sketch of how I thinkimplement MVC in PHP:

Sketch of how MVC in PHP may be implemented

[I know that some steps are missing, for example. how it Routeranalyzes routeto know what to load Viewand Controller, but these steps are more technical in nature and not important for understanding the general flow of MVC in PHP.]

I find my understanding of MVC in PHP from this series of articles . However, I think that this structure will be different from most of the structures that people think when they talk about MVC in PHP because of this article (The article says that it’s not only Controller, but also Viewlinked to Model).

:

  • a right MVC PHP?
  • / ? , , , LoginView , , ? ( , , , MVC, , , .)
  • , (, [ , ..], ), ? ? ( , , , , , , MVC, ?)
  • , AJAX ? ajax , , ajax? , AjaxViews , . json objects AjaxControllers , , ajax legtitim?

, MVC PHP, , , , MVC.

, , , , MVC, , MVC , . , , , .

, !

- --- --- --- --- -

MVC. - .

enter image description here

+4
2

, .

  • MVC. , , web MVC.
  • . , , . Web MVC?.
  • , : 1:1 , , , bootstrap script (LoginController, LoginView) , . , (, ).
  • Accept: HTTP ( - Accept: application/json AJAX). JSON HTML.

?

- , , . . . , MVC?.

MVC , : Input (), Logic () Output (view). PHP ( , , ).

, . "Web MVC" - , .

+4

. , . . , MVC.

0

Source: https://habr.com/ru/post/1540017/


All Articles