ThinkPHP3.1 new features-improvement and improvement of group support-PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.