/** * Used to list games for a specified system * * @param array $options */ public function list2Action($options) { $sys_id = 0; $system = false; if (isset($options['sys_id'])) { $sys_id = $options['sys_id']; $_system = new \Videogames\Model\Systems(); $system = $_system->getSystem($sys_id); $this->actHeader = $this->altHeader; } if ($system === false) { $this->errorMsg['error_msg'] = "System not found!"; $this->render($this->errorPage, $this->errorMsg, $this->actHeader); exit; } $games = $this->data->getSystemGames($sys_id); $this->render("game/list2.phtml", ['system' => $system, 'games' => $games], $this->actHeader); }