What does Thinkphp mean? The difference between thinkphp5.0 and thinkphp3.2

云罗郡主
Release: 2023-04-04 18:32:02
Original
8572 people have browsed it

When mentioning php, many people will think of thinkphp, so what is thinkphp? Is thinkphp php? What is the difference between thinkphp and php? Below, the php Chinese website will explain Thinkphp to you.

What does Thinkphp mean? The difference between thinkphp5.0 and thinkphp3.2

1: What is Thinkphp

Thinkphp is a free development framework. The earliest Thinkphp was created to simplify development. , Thinkphp also follows the Apache2 protocol. It originally evolved from Struts. It also makes use of some good foreign framework models, uses an object-oriented development structure, and is compatible with many tag libraries and other models.

2: The difference between thinkphp5.0 and thinkphp3.2

1.URL and routing

thinkphp5.0 has made some improvements in routing Improvements include adding routing rules and combination variables. At the same time, the URL access of thinkphp5.0 does not support the general mode, and the routing no longer supports routing customization, and has been changed to the regular definition method.

2. Request and response

In thinkphp5.0, requests and responses are added, namely Request and Response, where Request is the processing request object and outputs to the client.

3. Database

thinkphp5.0 has a strong data query function, and the query returns objects and supports closure and block queries. Previously, it was through chained queries, and it is Called through Db class.

4. Automatic verification and automatic completion

There is a big difference between automatic verification and automatic completion. thinkphp5.0 uses a validator for verification, and defines a modifier after automatic completion. .

5. Log

The thinkphp5.0 page is enhanced using Trace and the browser console.

The above is what does Thinkphp mean? A complete introduction to the differences between thinkphp5.0 and thinkphp3.2. If you want to know more about phpGetting Started, please pay attention to the php Chinese website.


The above is the detailed content of What does Thinkphp mean? The difference between thinkphp5.0 and thinkphp3.2. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template