Discuz 3.2 discuz_application.php Code execution logical sequence analysis
Description
Step 1. _init_env () is defined in the Discuz_application file, and the Super global variable $_g (global $_g) is defined in this method
Step 2. The _init_env () method is initialized in the Discuz_application constructor
Step 3. Instantiate discuz_application
Step 4. The method template () defined in Discuz_application is used in the forum_index.php file, and the Super global variable $_g (global $_g) is also defined in this method
Step 5. The template () method is used to load the code in the template file discuz.htm, parsing, because the whole process of defining global variables, so you can directly use $_g such a super global array
Read more: Click on the Valley point PHP website
This article is from the "3Q alpinresort" blog, make sure to keep this source http://3qab51.blog.51cto.com/4132683/1610674
Discuz 3.2 discuz_application.php Code execution logical sequence analysis