/** * @param Game $game * @param $file */ private function assignAndRender(Game $game, $file) { $this->template->game = $game; $this->template->max_rating = $this->settings->getMaxRating(); $this->template->setFile($file); $this->template->render(); }
public function startup() { parent::startup(); $this->template->max_rating = $this->global_settings->getMaxRating(); $this->template->image_dir = __DIR__ . '/../../www/images/games/'; $this->template->title = ''; }