Ask thinkphp to ask the question of if judgment of TP template language

Source: Internet
Author: User

Ask thinkphp to ask the question of if judgment of TP template language

The code is as follows
<volist name= "Pagedata" id= "VO" >
<if condition= "$pageNow eq $vo. Index" >
<a class= "Active" href= "/myhouse/mylist?pagenow={$vo. Index}" >{$vo .index}</a>
<else/>
<a href= "/myhouse/mylist?pagenow={$vo. Index}" >{$vo .index}</a> </if>
</volist>
But <if condition= "$pageNow eq $vo. Index" > here is always judged unsuccessful.

--------Solution--------
<if condition= "$pageNow eq $vo [' index '] ' >
--------Solution--------
still can't ah, do not know why!!!!
--------Solution--------
Reference 2 Floor Wyqstc2 's reply:
still can't ah, do not know why!!!!


That's not equal.
--------Solution--------
I didn't use TP. I was wondering if this is an assignment operation? Can the assignment be unsuccessful? or the special wording of TP?
--------Solution--------
The
original is $pagenow is a null value, low-level error!!!!!!
article reproduced from the IT community: http://www.itjie.wang/phpframework/442907.html

Ask thinkphp to ask the question of if judgment of TP template language

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.