ThinkPHP3.1 new features: group support improvement and improvement overview. The following improvements have been made to the support for groups in ThinkPHP3.1: each group supports independent empty modules ThinkPHP3.0 and earlier groups do not support defining independent empty modules, the empty EmptyA ThinkPHP3.1 version provides the following improvements to group support:
Each group supports independent empty modules.
ThinkPHP3.0 and earlier versions of the group do not support defining independent empty modules. the empty module EmptyAction can only be placed in the outer layer of the group Directory, while ThinkPHP3.1 improves that each group can define independent empty modules, it is convenient to have different empty modules in different groups.
Group directories are preferentially loaded for common actions and models.
If a group of ThinkPHP3.0 is to inherit from a public Action class or a Model class group Directory, the inherited public class can only be placed in the outer Directory of the group. Otherwise, you must manually import the group using the import method, at the beginning of ThinkPHP3.1, when the system automatically loads the inheritance class, it will first search for the directory under the current group. if not, it will search for the outer Directory of the group.
Every group supports independent empty modules ThinkPHP3.0 and earlier versions of the group do not support defining independent empty modules, empty modules EmptyA...