<?php

class Controller_Season extends Controller_Home
{
    public function action_index()
    {
        $season_id = $this->param('season_id');

        $season = Model_Season::find_by_pk($season_id);

        if(!$season)
            Response::redirect('/home');

        $body = View::forge('season/index');

        $body->set('season', $season);

        $this->template->body = $body;
    }
}