public function update_ranking_action() { // if the game's not finished, don't allow this method if (Session::get('game') != 'final_score') { Redirect::to('game/'); return false; } GameModel::update_ranking(); Redirect::to('game/end_screen/'); }