Home  >  Article  >  CMS Tutorial  >  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

藏色散人
藏色散人forward
2020-06-23 14:03:253481browse

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete