We are now learning how to get and set the configuration file
We will learn:
(1) Obtain the first-level configuration file
(2) Obtain the secondary configuration file
(3) Set the secondary configuration file
1. Obtain the first-level configuration file
(1) We create the module admin under the application folder, create the controller under the admin folder, and create a controller file named User.php under the controller folder
(2) Defined in User.php
(3) Access address: localhost/tp5.1/ think/public/index.php/admin/user/get , get a two-dimensional array,
Note: The generated two-dimensional array is actually all the files in the think/config folder, you can check and compare, you will know
2. Obtain the secondary configuration file