Discuz! In X3.2, which is a template file and which is a template parsing file-php Tutorial

Source: Internet
Author: User
Discuz! In X3.2, which is a template file and which is a template parsing file is usually used in php projects. at least a template class, a template parsing class, a compilation file, and a cache file are required, there are also system variable files,
Do not know discuz! What directories are these items in x3.2?


Reply to discussion (solution)

Template class: \ source \ class \ class_template.php. Generally, the checktplrefresh () method (in \ source \ function \ function_core.php) is called when the template () method is executed, execute parse_template to compile the template. the compiled template can be viewed under \ data \ template.
Cache: the loadcache () method is used to obtain cached data. discuz uses the pre_common_syscache table to cache (mediumblob binary) data (of course, file cache is also available ), most of the data in $ _ G is obtained from this table.
System variable: the parameter set in the discuz background (for example, $ _ G ['setting']) is stored in the pre_common_setting table, however, the data in $ _ G ['setting'] actually comes from the data whose cname is setting in the pre_common_syscache table. it is updated in the background-> Tools-> cache, click OK to save the update to the pre_common_syscache table. there are other system variables in the table, such as permission settings for each user group...

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.