/**
  * @Route("/student/view/{id}", name="student_view")
  */
 public function viewAction($id, Request $request)
 {
     $student = Student::getOne($id);
     //get module results of the student
     $results = student_module_grade::getStudentModuleResults($id);
     //get semester results of the student
     $semResults = Semester_results::getSemesterResults($id);
     return $this->render('student/view.html.twig', array('student' => $student, 'results' => $results, 'semResults' => $semResults));
 }
示例#2
0
 /**
  * @Route("/student/view/{id}", name="student_view")
  */
 public function viewAction($id, Request $request)
 {
     $student = Student::getOne($id);
     return $this->render('student/view.html.twig', array('student' => $student));
 }