中英
评论控制器
  • 翻译

Comment controller

以上为机器翻译结果,快速获取精准的人工翻译结果,建议选择有道人工翻译

  • 双语例句
  • 1
    创建一个comments模型来为评论处理数据库交互,而且当然是由comments控制来完成实际工作。
    We create a comments model to handle the database interaction for our comments and, of course, a comments controller to do the actual work.
  • 2
    对于 posts 控制,还需要修改 readAction 才能检索每个 post 的评论并将这些评论分配到视图中。
    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.
  • 3
    可以把评论视为posts的逻辑部分并决定把这些评论包含到同一个控制、模型中。
    We could look at comments as a logical part of posts and decide to include them all in the same controller, model, etc.
查看更多