tp5 分类输出
$convention = ConventionModel::get($id);
$res = Db::table('convention_cate')->where('id='. $convention['cate_id'])->find();
$this->assign("res",$res);
前台渲染
{if !empty($cate)}
{foreach name="cate" item="vo"}
<li value="{$vo.id}" class="list-cpss-cont1C1"><a href="?cid={$vo.id}&pid={$b}">{$vo.catename}</a></li>
{/foreach}
{/if}