MVC Architecture

I want clarification in MVC Architecture. Looking through some documents, I see that the following relationship is established between Model-View and Controller. Please help me understand how this is possible.

  • View status request models
  • The model transmits status information for viewing
+3
source share
4 answers

MVC Fulfills some simple rules.

  • The model speaks to the controller
  • The controller speaks with the view
  • Browsing never talks about a model.

. , "blogposts", : "title" "body", :

Blogpost.create(:title => "Hello", :body => "World")

! - :

blogs = Blogpost.find(:all)

"blogs" , , . , , Ruby (on Rails), MVC.

+2

, , , . , , .

MVC . , "" , , .

+1

, "" "". . , , , View , , . , , - , View . , Observer .

0

, "" MVC , , - - ( , ). , , : " ". , , , , .

, - , . , , gui api, , , , . , , , : .

, - "" MVC, - , ​​ , , . , , .

0
source

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


All Articles