@ -21,8 +21,13 @@ class Controller_Episode extends Controller_Home
$episode->getMetaData();
$seasons = $episode->getTvShow()->getSeasons();
$episodes = $episode->getSeason()->getEpisodes();
$body = View::forge('episode/index');
$body->set('episode', $episode);
$body->set('seasons', $seasons);
$body->set('episodes', $episodes);
$this->template->body = $body;
}
@ -11,11 +11,15 @@ class Controller_Season extends Controller_Home
if(!$season)
Response::redirect('/home');
$seasons = $season->getTvShow()->getSeasons();
$this->template->title = $season->getTvShow()->title . ' S' . $season->number;
$body = View::forge('season/index');
$body->set('season', $season);