public function show(SS_HTTPRequest $r) { $presentation = Sluggable::get_by_slug('SchedPresentation', $r->param('ID')); if (!$presentation) { return $this->httpError(404); } return array('Presentation' => $presentation); }