protected static function load_slideshow($id = null) { if (!$id) { $id = $_GET['id']; } $slideshow = Slideshow::find_by_id($id); if ($slideshow) { return $slideshow; } else { Error404(); } }