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