Have done thinkphp frame and Funway buy system come in and see!

Source: Internet
Author: User
I want the foreground Head.moban template to implement such a function, the following code:


{foreach from= "$sidegoodscatelist" item= "gclist" Name= "Gclist"}


&id={$gclist. ID} "title=" {$gclist. Name} "shopping=" Food ">{$gclist. name}[{$gclist. Goods_count}]

{/foreach}


This line, I hope if $_get[' id ']== $gclist. ID then class= "current", but can not be achieved anyway!


Reply to discussion (solution)

Take a closer look at whether the $pid is not passing over the value.

Take a closer look at whether the $pid is not passing over the value.

This value is assign in the background code.

Recently looking at the code of the sharing system. The code for navigating is this:


  • Different operation pages define different module_name, as you refer to below.

    Recently looking at the code of the sharing system. The code for navigating is this:


  • Different operation pages define different module_name, as you refer to below.

    But this is a different sort of parameter.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.