We could look at comments as a logical part of posts and decide to include them all in the same controller, model, etc.
可以把评论视为posts的逻辑部分并决定把这些评论包含到同一个控制器、模型中。
And speaking of that posts controller, we need to modify the readAction to retrieve the comments for each post and assign them to the view.
对于posts控制器,还需要修改readAction 才能检索每个post 的评论并将这些评论分配到视图中。
Users who comment the most frequently on new posts get a "Sofa Collector" badge.Those who comment the most number of times on a single post get a "Weibo Controller" badge.
在新内容中评论最频繁的用户将获得一个“沙发控”勋章,一段时间内在同一内容中发布评论最多的人将获得“微博控”勋章。
The comments controller will look like a slimmed-down version of the posts controller, since all we need is a writeAction.
comments控制器看上去很像posts 控制器的精简版,因为只需要writeAction。
Users who comment the most frequently on new posts get a "Sofa Collector" badge. Those who comment the most number of times on a single post get a "Weibo Controller" badge.
在新内容中评论最频繁的用户将获得一个“沙发控”勋章,一段时间内在同一内容中发布评论最多的人将获得“微博控”勋章。
Users who comment the most frequently on new posts get a "Sofa Collector" badge. Those who comment the most number of times on a single post get a "Weibo Controller" badge.
在新内容中评论最频繁的用户将获得一个“沙发控”勋章,一段时间内在同一内容中发布评论最多的人将获得“微博控”勋章。
应用推荐