Home  >  Q&A  >  body text

Isn’t it necessary to write PHP native tags in the view only if you have no choice but to do so?

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

whxnwhxn1730 days ago1140

reply all(2)I'll reply

  • 微笑°

    微笑°2019-12-31 00:18:07

    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
    0
  • whxn

    But you can’t write mixed code because it violates the design specifications of mvc.

    whxn · 2019-12-31 00:22:15
  • Cancelreply