The PHP MVC framework principles and common learning framework

In PHP development, select the appropriate framework helps to speed up software development time, save valuable project time, and allows developers to focus on achieving functions.

In other words, the popular PHP framework helps speed up the process of application development (RAD) is. The framework provides the basic structure of Web development, then quick development tasks, the entire development process is stable, and the use of standard processes, facilitate internal development teams to quickly reach a contract.

There are dozens of open source frameworks available in the market, how quickly learning framework?

Now most of the framework are based on MVC mode, so understanding the principles of MVC framework, you can quickly start application development.

First, what MVC framework?

MVC full name Model View Controller, the model (model) - view (view) - Abbreviation controller (Controller), and with a service logic, data, interface display method of separating an organization code, a business logic to gather member inside, the improvement and customization interface and user interaction at the same time, without rewriting the business logic.

 

Easy to achieve two, MVC Framework

Thinkphp below shows the module, using the MVC pattern

 

 

Third, how to quickly learn a framework

 1. Download and install the frame

 2. Check the directory structure

 3. Configuration

 4. The controller uses a template model 

 The template view

 6. CURD model to find ways generally have to do with database operations  

 7. Route

 9. HTTP request value GET POST know

 10. The realization of a simple function CURD

 

Fourth, the frame

ThinkPHP

https://www.kancloud.cn/manual/thinkphp5/118003

 

CI framework

http://codeigniter.org.cn/

 

Laravel

https://laravelacademy.org/laravel-docs-5_8

 

Guess you like

Origin www.cnblogs.com/ryanzheng/p/12440199.html