Code Analysis of Discuz Learning (a) directory structure

Source: Internet
Author: User

Home Directory


Discuz uses its own framework, which is a single-entry application just like any other framework application. The. php files in the home directory, most of which are application entry files.

home.php: The entrance to the homeland, that is, a blog-like thing in the forum.
index.php: Home file, depending on the user's homepage, decide which app to jump to.
userapp.php: User application, for the time being is not very clear is why use.
plugin.php: Plug-in portal, background installed plug-ins, will be used from here.
admin.php: Backstage Entrance
protal.php: I don't know what to do with it.
search.php: Search Portal
group.php: Group Application Portal
forum.php: Forum Entrance
Template: Templates files are here
Static resources, multimedia and so on.
_notes: This is the project information directory that NetBeans generates, and it doesn't matter if you delete it.
Nbproject:: Ibid.


All business code of Discuz is placed in the source directory , including framework, controller, database operation module and so on.


ADMINCP: Business code behind the scenes
Archiver: No plate (main directory that is the entrance, this is the business code is located)
Class: Frame, class Library
Function: Library of functions
Include: Required add-ons
Language: Multi-lingual support
Module: Controller Directory
Plugin: Plugin Directory
discuz_version.php Version Related information

Source\class Directory

The table directory holds all the code for the operation of the data table.
The Discuz directory is the frame body.
Class_core.php can be understood as the portal file for the framework, and all applications need to import this file.

Source\module Directory
Here is the controller, you can clearly see that the front desk is divided into eight applications.

Code Analysis of Discuz Learning (a) directory structure

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.