In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "what does php mvc refer to". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Php mvc is a design model; M in mvc represents the model model, which is used to complete the specific business logic; V represents the view view, which is used to display information; C represents the controller controller, which is responsible for issuing orders.
This article operating environment: Windows7 system, PHP7.1 version, Dell G3 computer.
What does php mvc mean?
Basic understanding and principle of MVC of php
Php mvc meaning
What is MVC?
For beginners, this part may not be well understood. Mvc is a design model that allows us to separate business logic from specific data display and layer it.
M:model model to complete the specific business logic
V:view, view, responsible for displaying information
C:controller, the controller is responsible for giving orders and plays the role of a traffic policeman (make a distinction and determine what to do when a demand comes from the front desk)
The basic principles and details are summarized in a picture:
Explain this: we enter url through the browser. When the request is processed by the server, the url will be parsed first, then classified according to the latter three parameters, the corresponding platform will be found according to the p parameter, the corresponding controller will be found according to c, the method in the corresponding controller will be found according to a, and then the corresponding controller will call the database model to carry out the corresponding database operation. And the logical processing of the data, and return the results, and then display by the view layer.
The complexity and diversity of functions of a website determines that there must be multiple controller to deal with different modules, so we can first define a base class of controller to save public methods and increase code reusability.
The advantage of mvc is clear: layering is clear and convenient for team development and modification.
That's all for "what does php mvc mean?" Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.