public function render()
    {
        //Echo the view
        //renders the header automatically
        Header::renderHeader();
        $bidManager = new BidManager();
        $auctionId = (int) $_GET['id'];
        ?>

  <div id="bidHistory" class="container">
    <div class="well well-small">
    	<?php 
        ?>
      <h2><?php 
        echo $bidManager->getAuctionTitle($auctionId);
        ?>
's Bid History Page</h2>
      <br>
      <table>
        <tr>
          <th>Amount</th>
          <th>Time of bid</th> 
          <th>Username</th>
          <th>First Name</th>
          <th>Last Name</th>
        </tr>

      <?php 
        foreach ($bidManager->getBidHistory($auctionId) as $history) {
            echo "<tr>";
            echo "<td>" . $history->amount . "</td>";
            echo "<td>" . $history->time_of_bid . "</td>";
            echo "<td>" . $history->username . "</td>";
            echo "<td>" . $history->first_name . "</td>";
            echo "<td>" . $history->last_name . "</td>";
            echo "</tr>";
        }
        echo "</table>";
        ?>
                   

    </div>
  </div>

<?php 
    }