list seasons and episodes in header

pull/9/head
Chewbaka69 6 years ago
parent 6d983f7323
commit c034aaa2e4

@ -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);
$body->set('seasons', $seasons);
$this->template->body = $body;
}

Loading…
Cancel
Save