public function generateAction() { $sitemap = new Model\Sitemap(); file_put_contents($sitemap->getFilePath(), $sitemap->generate($this->getRequest())); return $this->redirect()->toRoute('module/sitemap'); }