Home > PHP Framework > ThinkPHP > What is the difference between thinkphp3.1 and 3.2

What is the difference between thinkphp3.1 and 3.2

WBOY
Release: 2022-04-15 11:37:15
Original
2412 people have browsed it

Difference: 1. The common grouping and independent grouping in thinkphp3.1 version need to be configured in the configuration file, while the thinkphp3.2 version does not need to be configured, and independent grouping can be used directly; 2. thinkphp3. Version 2 began to use namespaces, while version 3.1 of thinkphp has no command space.

What is the difference between thinkphp3.1 and 3.2

The operating environment of this article: Windows 10 system, ThinkPHP version 3.2, Dell G3 computer.

What is the difference between thinkphp3.1 and 3.2

The main differences are:

1. ThinkPHP3.2 mainly integrates 3.1 and previous versions Grouping issues. Before 3.2, there were ordinary groups and independent groups, which also needed to be configured in the configuration file. 3.2 no longer requires configuration, just use independent grouping.

2. ThinkPHP3.2 starts to use namespaces, so there are also requirements for the server PHP version.

The 3.2 version introduces namespaces, strengthens driverization and behavior, enhances the concept of modularity and support for cloud platforms, and improves many details.

The main improvements of thinkphp3.2 include:

New design of modular architecture

New namespace and automatic import mechanism

Improved routing function

Theme dynamic switching support

More powerful Action parameter binding

Model parameter binding support

Improved domain name Deployment supports

New application model

Newly rewritten tool classes (including images, verification codes and uploads, etc.)

Provides better cloud platform support

Correction of many BUGs discovered before

Mainly related to the debugging of the architecture and the introduction of namespaces, the other effects are not significant (the tool class has been rewritten).

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What is the difference between thinkphp3.1 and 3.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