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

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

WBOY
WBOYOriginal
2016-06-13 12:49:051028browse

搞过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,你参考下。
  • 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