<?php 
                echo 'Runner Up: ' . $participant->name . '<br>';
                ?>
  		<?php 
            }
            ?>
  	<?php 
        }
        ?>
	<?php 
    }
} else {
    ?>
  <?php 
    //Populate array for view tournament table
    $allTournaments = Tournament::find('all', array('conditions' => array('eventID = ?', $_SESSION['event'])));
    ?>
  <?php 
    $allGames = Game::find('all');
    ?>
  <h2>Tournament Management</h2>
  <form action="/includes/modules/tournamentManagement/tournaments.php" class="form-horizontal" method="POST">
    <div class="form-group" id="tournamentNameInputDiv">
      <label for="tournamentName" class="col-sm-2 control-label">Name</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" id="tournamentName" name="tournamentName" placeholder="Tournament name" value="<?php 
    echo $_POST['tournamentName'];
    ?>
" required>
      </div>
    </div>
Example #2
0
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::bind('tournament', function ($key, $route) {
    $tournament = Tournament::find($key);
    if ($tournament == null) {
        App::abort(404);
    } else {
        return $tournament;
    }
});
Route::bind('round', function ($key, $route) {
    $round = Round::find($key);
    if ($round == null) {
        App::abort(404);
    } else {
        return $round;
    }
});
Route::bind('map', function ($key, $route) {
    $round = Map::find($key);
    if ($round == null) {