The article list uses chain operations to associate the user table and article table
用 volist 循環(huán)這條數(shù)據(jù) 當(dāng)點(diǎn)這條數(shù)據(jù)跳到詳情頁面并傳一個(gè)ID
自己發(fā)現(xiàn)幾個(gè)問題 :1.鏈?zhǔn)将@取的數(shù)據(jù)時(shí)間不能自動(dòng)轉(zhuǎn)換 2.鏈?zhǔn)讲僮魅绾?/pre>Only one piece of data is obtained (ID ) 3. Regarding the writing method of chain where (when the ID of the details page = the same as the obtained ID, the PV traffic will automatically be 1)
Let’s look at the code I wrote: please ask the teacher to guide me and write Here’s a case. Thank you teacher
Please finish the basic course of thinkphp first. These issues are covered in the course
Time can be converted in the template! For example: {$vo.create_time|date="Y-m-d H:i:s"}, the connection in the a tag can be spliced!