search

Home  >  Q&A  >  body text

How does ThinkPhp output second- and third-level columns in a tree shape?

I want to implement the column call of the following tree structure:

360截图16660101677647.png


##The background controller should How to write, my database is as follows:

360截图16550428537093.png

Can anyone help me solve it


汇英拓达杨凯瑞***汇英拓达杨凯瑞***2097 days ago923

reply all(1)I'll reply

  • 叶子

    叶子2019-04-27 03:25:07

    If there are not many categories, you can use recursion

    reply
    0
  • Cancelreply