Home > Backend Development > PHP Tutorial > TP5.1 RC2 version released, many details improved

TP5.1 RC2 version released, many details improved

*文
Release: 2023-03-18 09:48:02
Original
1446 people have browsed it

TP is a mainstream PHP development framework in China, and I believe many people have used it. TP5.1 RC2 has been released. This update provides a lot of detailed optimizations. Users who want to upgrade can check whether the update meets their needs.

ThinkPHP V5.1RC2 version

Main updates are as follows:

Correction of view query

Correction of resource routing

Amend the HasMany association

Amend the closure query of the where method

One-to-one association After binding the attribute to the parent model, the associated attribute is no longer retained

Amend the command line of the application Configuration file reading

Improve the getCacheKey method of the Connection class

Improve the illegal image exception in file upload

Improve the unique rules of the verification class

Config class get The method supports obtaining the first-level configuration

Correction of the count method's support for fetchSql

Correction of the mysql driver's socket support

Improvement of the getRealSql method of the Connection class

Correction view assistant function

The Query class adds leftJoin rightJoin and fullJoin methods

Improve the acquisition of app_namespace

Improve the append method to support one-to-one bind attributes

Improve the return value of the associated saveall method

Route identification setting exception repair

Improve the Route class rule method

Improve the table attribute setting of the model

Improve composer Loading order of autofile

Improve exception_handle configuration support for closures

Improve app assistant function to add parameters

Improve composer's loading path judgment

Correct routing URL generation of combined variables

Correct routing URL generation

Improve whereTime query and support extended rules

The second parameter of the move method of File class supports false

Improve the Config class

Improve the cache class remember method

The conventional configuration file adjusts the Url class and does not perform urlencode processing when the normal mode parameter is used.

Cancel the ROOT_PATH and APP_PATH constant definitions as follows You need to change the application directory and redefine the entry file yourself

Add the Env acquisition of app_debug

Correct the pan-domain name binding

Improve the parsing mechanism of query expressions

mysql adds regexp query expressions to support regular queries

Improves the exception judgment of query expressions

Improves the destroy method of the model class

Improves the Builder class to cancel the parseValue method

Fix the parameter binding problem of like query

The console and start files are moved out of the core and included in the application library

Improve the Db class primary key deletion method

Improve the pan-domain name binding module

Cancel the BIND_MODULE constant and use the bind method in the entry file to set it

Improve array query

Improve the exception handling of template rendering

Improve the controller base class Architecture method parameters

Improve the success and error methods of the Controller class

Improve support for the browser JSON-Handle plug-in

Optimize the mobile display of the jump template

Amend the support for time fields in the chunk method of model query

Improve trace driver

Add push method to Collection class

Improve Redis Session driver

Add JumpResponse driver

If you update from RC1 to RC2 version, in addition to updating the core library, you also need to update the application repository, or use composer to reinstall it.

Related recommendations:

[Course]ThinkPHP5 basic video tutorial

ThinkPHP5 framework basic knowledge, development specifications and directory structure

TP5 automatic loading mechanism detailed explanation

The above is the detailed content of TP5.1 RC2 version released, many details improved. 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