Home > CMS Tutorial > Empire CMS > Functions commonly used in secondary development of the empire cms model data table

Functions commonly used in secondary development of the empire cms model data table

藏色散人
Release: 2020-06-23 14:03:48
forward
3505 people have browsed it

The following is the tutorial column of Empire cms secondary development to introduce to you the commonly used secondary development of Empire cms model data table Required functions and development operation procedures, I hope it will be helpful to friends in need!

Functions commonly used in secondary development of the empire cms model data table

##The data stored in cache class_r requires:

tbname:Data table name
modid:1
Of course there are other fields, which we don’t need for the time being. If we need them later, we will explain them separately.
ReturnSqlTextF($mid,1)//Return all field names in the model table, as well as fields in the main table. Strings in the form of id, title, std, fstd are placed after select.

##midgenerationTableModelTypeidcan is divided into with categorycachedsavedGetGet,mid represents the model id number, which can be obtained in the classification cache,class_r[KaTeX parse error: Expected group after '_' at position 162: … The ones are: The table name of the main table is 'ecms_̲'.tbnameThe table name of the secondary table is: 'ecms_'.KaTeX parse error: Expected group after '_' at position 14: tbname.'_data_̲' .
add['stb']Then read the data from these two tables, perform array_merge()//merge the table name fields, and then output the corresponding data. The specific code is as follows:


The returned content is as follows: Functions commonly used in secondary development of the empire cms model data table

Functions commonly used in secondary development of the empire cms model data table

##

The above is the detailed content of Functions commonly used in secondary development of the empire cms model data table. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template