You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
552 B
27 lines
552 B
7 years ago
|
<?php
|
||
|
|
||
|
use Fuel\Core\Response;
|
||
|
use Fuel\Core\View;
|
||
|
|
||
|
class Controller_Episode extends Controller_Home
|
||
|
{
|
||
|
public function action_index()
|
||
|
{
|
||
|
$episode_id = $this->param('episode_id');
|
||
|
|
||
|
if(!$episode_id)
|
||
|
Response::redirect('/home');
|
||
|
|
||
|
$episode = Model_Movie::find_by_pk($episode_id);
|
||
|
|
||
|
if(!$episode)
|
||
|
Response::redirect('/home');
|
||
|
|
||
|
$episode->getMetaData();
|
||
|
|
||
|
$body = View::forge('episode/index');
|
||
|
$body->set('episode', $episode);
|
||
|
|
||
|
$this->template->body = $body;
|
||
|
}
|
||
|
}
|