How does the thinkphp5 template volist parse variables?



Please take a look. Is it wrong to write this? why can"t you parse this variable

?
Feb.28,2021
That's how volist is used in the

template, yes. Change the controller to $this- > view- > assign ('list',$list);


change $this- > assign (' list',$rtrade) to $this- > assign ('rtrade',$rtrade). The first parameter in it is the name of the variable, followed by the value of the variable

.
Menu