/**
  * Renders index template
  */
 public function index($page = 1)
 {
     $conf = null;
     if (isset($_GET['conf'])) {
         $conf = $_GET['conf'];
     }
     // Set some config values
     $rows_per_page = 12;
     $total_rows = $this->standings_model->count();
     $this->data['pagebody'] = 'standings/index';
     $this->data['title'] = 'League Standings';
     $this->data['base_url'] = '/standings';
     $this->data['current_page'] = $page;
     $this->data['total_pages'] = ceil($total_rows / $rows_per_page);
     // Retrieve standing rows from db for current page
     $this->data['rows'] = $this->generateTableBlock($page, $rows_per_page, $conf);
     // Generate pagination block
     parent::generatePaginationBlock($this->standings_model, '/standings', $page);
     $this->render();
 }