Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function indexAction($examID) |
||
21 | { |
||
22 | $list = new ExamsListModel($this->get('dbh')); |
||
23 | $examsList = $list->getExamsByGroupId($examID); |
||
24 | |||
25 | $one = new ExamsGroupModel($this->get('dbh')); |
||
26 | $info = $one->getExamsGroupInfoById($examID); |
||
27 | |||
28 | if (empty($info)) { |
||
29 | throw new Exception('Exams group does not exist!'); |
||
30 | } |
||
31 | |||
32 | $this->render('front/list', ['title' => $info->title, 'examsList' => $examsList]); |
||
33 | } |
||
34 | } |
||
35 |