How loops in a thinkphp template pass a variable

Source: Internet
Author: User
How does a loop pass a variable in a thinkphp template?
thinkphp Content Template page, the content page ID {$cont. id}, can be directly output in the content page, such as the page address is/page-51, {$cont. ID} can be directly output 51.

There is a loop list on the content page that needs to pass in the {$cont. ID}, but it is not available every time.

The wording of a


Xxx



Two


Xxx



{$wcon. ID} How can I get his value into the loop?
------Solution--------------------
Do you have wlist tags?
Only Volist.
------Solution--------------------
Do you want to define the processing code for the custom?
How you define it, how you preach it.
How do people know?
  • 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.