Isn't it necessary to write PHP native tags in the view only if you have no choice but to do so?
whxn
whxn 2019-12-30 14:39:27
0
2
1138

You can write foreach traversal in the controller, and then write volist traversal here without nesting

whxn
whxn

reply all(1)
微笑°

foreach is also a type of template tag. Volist should be added to the template tag by the person who developed the TP framework. 'TP framework uses stormy template engine

  • reply But you can’t write mixed code because it violates the design specifications of mvc.
    whxn author 2019-12-31 00:22:15
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!