The article list uses chain operations to associate the user table and article table
用 volist 循环这条数据 当点这条数据跳到详情页面并传一个ID
自己发现几个问题 :1.链式获取的数据时间不能自动转换 2.链式操作如何
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!