在线等,ecshop如何实现不同的分类商品调用详细页 5
switch($goods['cat_id']){case2:$smarty->display('goods.dwt',$cache_id);break;case6:$s...
switch ($goods['cat_id']){
case 2:
$smarty->display('goods.dwt', $cache_id);
break;
case 6:
$smarty->display('goods4.dwt', $cache_id);
break;
case 4:
$smarty->display('goods6.dwt', $cache_id);
break;
case 7:
$smarty->display('goods6.dwt', $cache_id);
break;
}
网上找的都是这样的,可我改了还是不行 展开
case 2:
$smarty->display('goods.dwt', $cache_id);
break;
case 6:
$smarty->display('goods4.dwt', $cache_id);
break;
case 4:
$smarty->display('goods6.dwt', $cache_id);
break;
case 7:
$smarty->display('goods6.dwt', $cache_id);
break;
}
网上找的都是这样的,可我改了还是不行 展开
1个回答
展开全部
取消掉缓存试试:
switch ($goods['cat_id']){
case 2:
$smarty->display('goods.dwt');
break;
case 6:
$smarty->display('goods4.dwt');
break;
case 4:
$smarty->display('goods6.dwt');
break;
case 7:
$smarty->display('goods6.dwt');
break;
default:
$smarty->display('goods.dwt');
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询