Home >Backend Development >PHP Tutorial >Overview of the improvements and improvements to the new features of ThinkPHP3.1 for grouping support_PHP Tutorial

Overview of the improvements and improvements to the new features of ThinkPHP3.1 for grouping support_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:24:30833browse

ThinkPHP3.1 version’s support for grouping has been improved as follows:

Each group supports independent empty modules

ThinkPHP3.0 and previous versions of the group do not support the definition of independent empty modules. The empty module EmptyAction can only be placed outside the group directory. However, ThinkPHP3.1 version has improved that each group can define independent empty modules. For This is convenient when there are different empty module requirements for different groups.

Public Action and Model classes load group directories first

If the ThinkPHP3.0 version group wants to inherit a public Action class or Model class under the group directory, the inherited public class can only be placed outside the group directory, otherwise it must be imported manually using the import method, and ThinkPHP3. 1. When the system automatically loads inherited classes, it will first search the ones under the current group directory. If not, it will search in the outer directory of the group.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/825448.htmlTechArticleThinkPHP3.1 version’s support for grouping has been improved as follows: Each group supports an independent empty module ThinkPHP3.0 Groups of previous versions do not support defining independent empty modules, and the empty module EmptyA...
Statement:
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