Home  >  Article  >  Backend Development  >  搞过ThinkPHP框架和方维团购系统的进来看看!

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

WBOY
WBOYOriginal
2016-06-23 14:05:22993browse

我是想前台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是不是没有传过来值。

仔细看一下$pid是不是没有传过来值。

这个值是在后台代码里 assign 的

最近在看分享系统的代码。导航的代码是这样的:


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

    最近在看分享系统的代码。导航的代码是这样的:


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

    可是这里是不同的分类参数啊
  • Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn