How does ThinkPhp output second- and third-level columns in a tree shape?
为梦兼程
为梦兼程 2019-04-26 10:57:10
0
1
1187

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

360截图16660101677647.png

How to write the background controller, my database is as follows:

360截图16550428537093.png

Who can help me solve this problem

为梦兼程
为梦兼程

reply all(1)
BLANK

The simplest idea: query the records with pid 0 in the database and then query the sub-columns in a loop. The number of layers required is just a few loops

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template