Discuz 3.2 discuz_application.php Code execution logical sequence analysis

Source: Internet
Author: User
Tags php website
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

Related Article

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.