Ejemplo n.º 1
0
 /**
  * Displays selected round information.
  *
  * @param int $id Id of selected round.
  */
 public static function show($id)
 {
     $round = Round::find($id);
     $course = Course::find($round->courseId);
     $holes = Hole::count_holes($round->courseId);
     $scores = Score::find_by_round2($id);
     $addedBy = Player::find($round->addedBy);
     View::make('round/show.html', array('round' => $round, 'scores' => $scores, 'holes' => $holes, 'course' => $course, 'addedBy' => $addedBy));
 }