param('movie_id'); if(!$movie_id) Response::redirect('/home'); $movie = Model_Movie::find_by_pk($movie_id); if(!$movie) Response::redirect('/home'); $this->template->title = $movie->title; $movie->getMetaData(); $movie->getTrailer(); $body = View::forge('movie/index'); $body->set('movie', $movie); $this->template->body = $body; } public function action_list() { $movies = Model_Movie::getList(); if(!$movies) Response::redirect('/home'); $this->template->title = 'Movie List'; $body = View::forge('movie/list'); $body->set('movies', $movies); $this->template->body = $body; } }