Home  >  Article  >  Backend Development  >  Which PHP framework is Weiqing?

Which PHP framework is Weiqing?

(*-*)浩
(*-*)浩Original
2019-09-10 11:41:046912browse

Weiqing is based on the most popular WEB2.0 architecture (php mysql). For the operating environment, we recommend using linux (centOS) nginx php5.3, mysql5.6.

Which PHP framework is Weiqing?

Entry script

The entry script is the first link in the application startup process. The entry file initializes the system's constants, global variables and global objects based on the "system configuration file", and forwards the end user's requests to the respective functional modules through the entry script.

The WeQing system is divided into three entrances, namely "Web Portal", "App Portal", and "WeChat Api Portal"

System Configuration File (Recommended learning: PHP programming from entry to proficiency)

The system configuration file stores important startup data of the WeQing system, and the file is "/data/config.php". This file is prohibited from being modified by ordinary users.

Web Portal

The Web Portal is mainly responsible for the background management function of the WeQing system. The entry file is "/web/index.php". There are strict permissions to access this portal, and users are required to log in. This entrance mainly completes the following tasks:

Authentication of logged-in users

Initialize identity information of logged-in users, assign administrator permissions or operator permissions

Permission menu division and Permission judgment

Loading system configuration

Routing user's request

App-side entrance

App-side entrance is mainly responsible for the Weiqing system The front-end "Micro Site", "Personal Center" and other functions accessible to ordinary users. The entry file is “/app/index.php”. Accessing the "Micro Site" does not require identity verification, while accessing the "Personal Center" requires users to log in. This entrance mainly completes the following work:

Initialize the data of the current official account

Initialize the microsite site information, style, template, navigation and other data

Initialize the identity information of fans & members (if you have permission to obtain it)

Load system configuration

Route user's request

WeChat Api entrance

WeChat Api entrance Mainly responsible for processing keywords, pictures, voice and other data requested by the WeChat public platform from the Weiqing system. The entry file is "api.php". This entrance is only for public platform access. This entrance mainly completes the following work:

Initialize the data of the current public account

Analyze the data structure pushed by the public platform and convert it into the WeQing message structure

Match the corresponding module based on the keywords or events in the message structure

Call the processor class of the module to return data to the WeChat public platform

The above is the detailed content of Which PHP framework is Weiqing?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn