thinkphp5 模板volist怎么解析变量?

https://img.mukewang.com/5c8f48fb00012a8602790043.jpg

https://img3.mukewang.com/5c8f48fd0001a05a01440042.jpg

https://img.mukewang.com/5c8f48fe00019d5602200437.jpg

https://img4.mukewang.com/5c8f48ff0001a2cd02970086.jpg
https://img.mukewang.com/5c8f4900000159fb08000091.jpg
请大家帮忙看看,这样写不对吗,为什么解析不出来这个变量

守着一只汪
浏览 470回答 2
2回答

富国沪深

模板中volist是那样用的,没错。控制器改成这样试试看 $this->view->assign('list',$list);

UYOU

把$this->assign('list',$rtrade)改为$this->assign('rtrade',$rtrade),里面的参数第一个是变量的名字,后面的是变量的值
打开App,查看更多内容
随时随地看视频慕课网APP