在article.php加入
$meta = $db->getRow("SELECT keywords,cat_name,cat_desc FROM " . $ecs->table('article_cat') . " WHERE cat_id = '{$article['cat_id']}'");$smarty->assign('cat_name', htmlspecialchars($meta['cat_name']));
调用标签为{$cat_name}
$meta = $db->getRow("SELECT keywords,cat_name,cat_desc FROM " . $ecs->table('article_cat') . " WHERE cat_id = '{$article['cat_id']}'");$smarty->assign('cat_name', htmlspecialchars($meta['cat_name']));
本文来源:ecshop 文章内容页调用当前栏目名称
本文地址:https://www.ys720.com/jiaocheng/2963.html
版权声明:本文采用[BY-NC-SA]协议进行授权,如无特别说明,转载请注明本文地址!