Exemplo n.º 1
0
 protected function get_comments($r)
 {
     Input::ensureRequest($r, array("id"));
     $id = $r["id"];
     $list = CommentsModel::fromPost($id);
     Output::success(array("list" => $list));
 }