public function top_scores() { $this->View->render('info/top_scores', array('ranking' => GameModel::get_ranking())); }
public function end_screen() { // if the game's not finished, don't allow this method if (Session::get('game') != 'end_screen') { Redirect::to('game/'); return false; } // change the game mode to null - the game is finished Session::set('game', null); $this->View->render('game/end_screen', array('ranking' => GameModel::get_ranking())); }