Home > Article > CMS Tutorial > Functions commonly used in secondary development of the empire cms model data table
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!
##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.
KaTeX parse error: Expected group after '_' at position 162: … The ones are:
The table name of the main table is 'ecms_̲'. class_r[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:
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!