《CMS教程:phpcms v9根據欄目catid獲取模型數據庫》要點:
本文介紹了CMS教程:phpcms v9根據欄目catid獲取模型數據庫,希望對您有用。如果有疑問,可以聯系我們。
相關主題:PHPCMS教程
導讀:phpcms v9根據欄目catid獲取模型數據庫
$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'];
轉載請注明本頁網址:
http://www.snjht.com/jiaocheng/5759.html