Conditions | 2 |
Paths | 5 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function view(){ |
||
21 | $damageId = $this->request->getParam('id'); |
||
22 | |||
23 | try{ |
||
24 | $damage = $this->getDamageRepository()->query($damageId); |
||
25 | |||
26 | $flight = new \Bbcvols($this->db); |
||
27 | $flight->fetch($damage->getFlightId()); |
||
28 | |||
29 | $this->render('damage/view.php', [ |
||
30 | 'damage' => $damage, |
||
31 | 'form' => new Form($this->db), |
||
32 | 'flight' => $flight |
||
33 | ]); |
||
34 | }catch (\Exception $e){ |
||
35 | echo $e->getMessage(); |
||
36 | } |
||
37 | } |
||
38 | |||
47 | } |