public static function show($data) { $id = -1; if (isset($data['id'])) { $id = $data['id']; } $post = PostModel::get($id); if (!$post) { return new Response(Response::HTTP_NOT_FOUND); } View::show('post', $post); }