What is Mvc,mvc is the Model view control, the model is responsible for database-related operations in the project, the view is views, responsible for the display of the page and data display, control is the controller, responsible for the middle of the logical transformation, data reception, output processing. The benefit of MVC is that project development allows the code and page to be broken down as much as possible, with as few associations as possible. This is just a way of development, it is said to come from Java, really deceptive Java AH.
The common PHP framework is basically the development model of MVC, for example: Yii (Praise), CI,TP (domestic), these are I have used, there are a lot of PHP framework too much, not one by one cases, the development model is similar, here I like the framework of Yii, Because this frame design is too powerful, is worthy of the full stack framework, like CI and TP is the general framework, the function is not much. There is no bright spot, hehe.
What is the development process, usually under the project directory, there is a folder called Controller, which is written in the control, and his (general) in the Category view of the table of contents is the page, there is a model of the directory, with database tables related to the data table named model file, Mainly in the controller inside the write function, and then use the model file provided in the method of the database is added and censored. View, is usually directly inside the controller call, Yii is $this->render (), CI is $this->load->view (), TP is $this->display (); These methods are basically outputting the data directly and then echo it out. Or add a third parameter to get the buffer content through Ob_start () ob_get_contents (), and then handle it according to the specific requirements.