thinkphp5.0"Architecture Configuration Chapter"

Source: Internet
Author: User

Schema Configuration

2. Configuration directory types and Settings tips : default / custom / Extended Configuration

3, the format of the configuration file :p hp/ini/xml/json , etc.

4, Scene configuration : Different environments to enable different configuration items

5, module configuration : Note that its priority is higher than the application configuration

6.End-level Dafa : Load multiple types of configuration files in any location

7.proper reading of configuration items : difference between class method and helper function

8. Dynamic Configuration Tips : configuration / Batch configuration / level two configuration

9. Setup tips for standalone configuration / extension configuration : Custom and system default differences and priorities

priority of configuration Items : conventions < applications < Application extensions < Application Scenarios < Module < Module Extensions < Module Application < Dynamic

One-to-one, configuration-scoped discussion : Configuration item visibility or scope of effect

2. default configuration directory (application directory ->config.php application configuration file) and framework Convention configuration directory (thinkphp-> convention.php) the same

Dump (\think\config::get ()); format output all configuration items

Custom Configuration Directory

1- Add -public\index.php entry file

2- Create -config folder,config.php

3.The format of the configuration file is detailed :p Hp/ini/xml/json

1- Add - Modify the configuration entry for the portal file

3- Create -config folder,config .

4, Scene configuration : Different environments to enable different configuration items

5. Application Configuration < module configuration

6.End-level Dafa : Load multiple types of configuration files in any location

7. Proper reading of configuration items : difference between class method and helper function

or

or

8. Dynamic Configuration Tips : configuration / Batch configuration / level two configuration

Two-level configuration packaged in ' Site_info '

9. Setup tips forstandalone configuration / extension configuration : Custom and system default differences and priorities

Standalone configurations are all level two configurations

practices < applications < Application extensions < scenarios < modules < module extensions < module applications < dynamic

One-to-one, configuration-scoped discussion : Configuration item visibility or scope of effect

thinkphp5.0"Architecture Configuration Chapter"

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.