《CMS教程:phpcms v9根據(jù)欄目catid獲取模型數(shù)據(jù)庫》要點:
本文介紹了CMS教程:phpcms v9根據(jù)欄目catid獲取模型數(shù)據(jù)庫,希望對您有用。如果有疑問,可以聯(lián)系我們。
相關(guān)主題:PHPCMS教程
導(dǎo)讀:phpcms v9根據(jù)欄目catid獲取模型數(shù)據(jù)庫
$siteids = getcache('category_content', 'commons');
$MODEL = getcache('model', 'commons');
$siteid = $siteids[$catid];
$CATEGORYS = getcache('category_content_'.$siteid, 'commons');
$category = $CATEGORYS[$catid];
$modelid = $category['modelid'];
$this->content_db->set_model($modelid);
?
$this->content_db->table_name = $this->content_db->table_name.'_data';
$tablename = $this->content_db->db_tablepre.$MODEL[$modelid]['tablename'];
轉(zhuǎn)載請注明本頁網(wǎng)址:
http://www.fzlkiss.com/jiaocheng/5759.html