public function alternative($page) { $alternatives = AlternativeDao::find(($page - 1) * self::SITEMAP_SIZE, self::SITEMAP_SIZE); return Response::view('sitemap.alternative', compact('alternatives'))->header('Content-Type', 'application/xml'); }