PHP头条
热点:

搞过ThinkPHP框架跟方维团购系统的进来看看


搞过ThinkPHP框架和方维团购系统的进来看看!
我是想前台head.moban 模板实现这样的功能,如下代码:


{foreach from="$sidegoodscatelist" item="gclist" name="gclist"}


&id={$gclist.id}" title="{$gclist.name}" shopping="food">{$gclist.name}[{$gclist.goods_count}]

{/foreach}


 这一行,我希望 如果 $_GET['id']==$gclist.id 那么就 class="current" ,可是无论如何都实现不了!
------解决方案--------------------
仔细看一下$pid是不是没有传过来值。
------解决方案--------------------
最近在看分享系统的代码。导航的代码是这样的:

  • 不同的操作页面定义不同的MODULE_NAME,你参考下。

    www.phpzy.comtrue/phprm/20132.htmlTechArticle搞过ThinkPHP框架跟方维团购系统的进来看看 搞过ThinkPHP框架和方维团购系统的进来看看! 我是想前台head.moban模板实现这样的功能,如下代码: {foreachfrom="$sidegoodscatelist"item="gclist"name="...

  • 相关文章

    PHP之友评论

    今天推荐